summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r--git/test/test_remote.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index 0b7ab574..19d029e5 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -15,8 +15,10 @@ import random
# assure we have repeatable results
random.seed(0)
+
class TestRemoteProgress(RemoteProgress):
__slots__ = ( "_seen_lines", "_stages_per_op", '_num_progress_messages' )
+
def __init__(self):
super(TestRemoteProgress, self).__init__()
self._seen_lines = list()
@@ -51,7 +53,6 @@ class TestRemoteProgress(RemoteProgress):
self._num_progress_messages += 1
-
def make_assertion(self):
# we don't always receive messages
if not self._seen_lines:
@@ -76,7 +77,6 @@ class TestRemote(TestBase):
fp = open(os.path.join(repo.git_dir, "FETCH_HEAD"))
fp.close()
-
def _do_test_fetch_result(self, results, remote):
# self._print_fetchhead(remote.repo)
assert len(results) > 0 and isinstance(results[0], FetchInfo)
@@ -116,7 +116,6 @@ class TestRemote(TestBase):
# END error checking
# END for each info
-
def _do_test_fetch_info(self, repo):
self.failUnlessRaises(ValueError, FetchInfo._from_line, repo, "nonsense", '')
self.failUnlessRaises(ValueError, FetchInfo._from_line, repo, "? [up to date] 0.1.7RC -> origin/0.1.7RC", '')