Replace assertIn
with an assertTrue
; apparently missing in Python 2.6
This commit is contained in:
parent
e27439be6a
commit
d143e50238
@ -696,7 +696,7 @@ class DeltaTest(unittest.TestCase):
|
|||||||
|
|
||||||
updates, removals = organization._delta()
|
updates, removals = organization._delta()
|
||||||
self.assertEqual({}, removals)
|
self.assertEqual({}, removals)
|
||||||
self.assertIn('employees.0', updates)
|
self.assertTrue('employees.0' in updates)
|
||||||
|
|
||||||
organization.save()
|
organization.save()
|
||||||
|
|
||||||
@ -708,7 +708,7 @@ class DeltaTest(unittest.TestCase):
|
|||||||
|
|
||||||
updates, removals = organization._delta()
|
updates, removals = organization._delta()
|
||||||
self.assertEqual({}, removals)
|
self.assertEqual({}, removals)
|
||||||
self.assertIn('employees.0', updates)
|
self.assertTrue('employees.0' in updates)
|
||||||
|
|
||||||
organization.save()
|
organization.save()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user