Created
April 2, 2013 07:05
-
-
Save pmyjavec/5290436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_sync(self): | |
mock = MagicMock(return_value=True) | |
with mock.patch("subprocess.call", mock): | |
site.sync(self.config, "site1", "development") | |
mock.assert_called_with(["rsync", "-an", "/tmp", "/var/tmp"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment