Show More
@@ -95,9 +95,9 b" A_HUGE_MANIFEST = ''.join(sorted(" | |||||
95 | itertools.cycle((HASH_1, HASH_2)), |
|
95 | itertools.cycle((HASH_1, HASH_2)), | |
96 | itertools.cycle(('', 'x', 'l'))))) |
|
96 | itertools.cycle(('', 'x', 'l'))))) | |
97 |
|
97 | |||
98 |
class |
|
98 | class basemanifesttests(object): | |
99 | def parsemanifest(self, text): |
|
99 | def parsemanifest(self, text): | |
100 | return manifestmod.manifestdict(text) |
|
100 | raise NotImplementedError('parsemanifest not implemented by test case') | |
101 |
|
101 | |||
102 | def assertIn(self, thing, container, msg=None): |
|
102 | def assertIn(self, thing, container, msg=None): | |
103 | # assertIn new in 2.7, use it if available, otherwise polyfill |
|
103 | # assertIn new in 2.7, use it if available, otherwise polyfill | |
@@ -456,5 +456,9 b' class testmanifest(unittest.TestCase):' | |||||
456 | ['a/b/c/bar.txt', 'a/b/c/foo.txt', 'a/b/d/ten.txt'], |
|
456 | ['a/b/c/bar.txt', 'a/b/c/foo.txt', 'a/b/d/ten.txt'], | |
457 | m2.keys()) |
|
457 | m2.keys()) | |
458 |
|
458 | |||
|
459 | class testmanifestdict(unittest.TestCase, basemanifesttests): | |||
|
460 | def parsemanifest(self, text): | |||
|
461 | return manifestmod.manifestdict(text) | |||
|
462 | ||||
459 | if __name__ == '__main__': |
|
463 | if __name__ == '__main__': | |
460 | silenttestrunner.main(__name__) |
|
464 | silenttestrunner.main(__name__) |
General Comments 0
You need to be logged in to leave comments.
Login now