diff --git a/PR2691618.py b/PR2691618.py index 6753070..f0a4818 100755 --- a/PR2691618.py +++ b/PR2691618.py @@ -89,8 +89,6 @@ def setUp(self): {'bo': 1}, {'bo': 1}, {'bo': 1}]} - def assertInList(self, item, mylist): - self.assertTrue(item in mylist, "Item %s not found in %s" % (item, mylist)) def testIdentity(self): self.assertSameMol(self.mol, self.serialised) def testRoundTrip(self): diff --git a/sweet.py b/sweet.py index 8687113..cedf9af 100755 --- a/sweet.py +++ b/sweet.py @@ -61,6 +61,9 @@ def assertInside(self, first, second, error, msg=None): if not (second-error) < first < (second+error): raise self.failureException, (msg or '%r != %r (+-%r)' % (first,second,error)) + def assertInList(self, item, mylist): + self.assertTrue(item in mylist, "Item %s not found in %s" % (item, mylist)) + def cont_assertEqual(self, a, b, c): """Replace an assertEqual with a cont_assertEqual to allow execution of additional tests in the same assertSameMol"""