style: remove spaces around parens per PEP8
authorDavid Aguilar <davvid@gmail.com>
Sun, 1 Jun 2008 19:52:53 +0000 (12:52 -0700)
committerMichael Trier <mtrier@gmail.com>
Mon, 2 Jun 2008 02:02:31 +0000 (22:02 -0400)
Signed-off-by: David Aguilar <davvid@gmail.com>
test/git/test_git.py
test/testlib/helper.py

index 61b90a5f2c1144caeaa958b63a37fda14c8f3585..e452e68b8d4b8e5cb3a9a7ec2adfdf8807a16521 100644 (file)
@@ -55,3 +55,9 @@ class TestGit(object):
     def test_it_handles_large_input(self):
         output = self.git.execute(["cat", "/bin/bash"])
         assert_true(len(output) > 4096) # at least 4k
+
+    @patch(Git, 'execute')
+    def test_it_ignores_false_kwargs(self, git):
+        # this_should_not_be_ignored=False implies it *should* be ignored
+        output = self.git.version(pass_this_kwarg=False)
+        assert_true("pass_this_kwarg" not in git.call_args[1])
index 0e3f6bf5a405a734b03cf3a4aee59661086a6c8f..ccc7f0acebe45ff35ada1492b727b07dae578391 100644 (file)
@@ -3,7 +3,7 @@ import os
 GIT_REPO = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
 
 def fixture_path(name):
-    test_dir = os.path.dirname( os.path.dirname(__file__) )
+    test_dir = os.path.dirname(os.path.dirname(__file__))
     return os.path.join(test_dir, "fixtures", name)
 
 def fixture(name):