##// END OF EJS Templates
tests: drop assertIn polyfill now that we're 2.7-only
Augie Fackler -
r32533:d68f3d6b default
parent child Browse files
Show More
@@ -102,15 +102,6 b' class basemanifesttests(object):'
102 102 def parsemanifest(self, text):
103 103 raise NotImplementedError('parsemanifest not implemented by test case')
104 104
105 def assertIn(self, thing, container, msg=None):
106 # assertIn new in 2.7, use it if available, otherwise polyfill
107 sup = getattr(unittest.TestCase, 'assertIn', False)
108 if sup:
109 return sup(self, thing, container, msg=msg)
110 if not msg:
111 msg = 'Expected %r in %r' % (thing, container)
112 self.assert_(thing in container, msg)
113
114 105 def testEmptyManifest(self):
115 106 m = self.parsemanifest(EMTPY_MANIFEST)
116 107 self.assertEqual(0, len(m))
General Comments 0
You need to be logged in to leave comments. Login now