use AssertEqual instead of AssertListEqual for py2.6 compatibility

This commit is contained in:
Marcel van den Elst 2015-06-04 15:02:32 +02:00
parent f730591f2c
commit 0f63e26641

View File

@ -649,13 +649,13 @@ class QuerySetTest(unittest.TestCase):
o.owner = p o.owner = p
p.name = 'p2' p.name = 'p2'
self.assertListEqual( o._get_changed_fields(), [ 'owner' ] ) self.assertEqual( o._get_changed_fields(), [ 'owner' ] )
self.assertListEqual( p._get_changed_fields(), [ 'name' ] ) self.assertEqual( p._get_changed_fields(), [ 'name' ] )
o.save() o.save()
self.assertListEqual( o._get_changed_fields(), [] ) self.assertEqual( o._get_changed_fields(), [] )
self.assertListEqual( p._get_changed_fields(), [ 'name' ] ) # Fails; it's empty self.assertEqual( p._get_changed_fields(), [ 'name' ] ) # Fails; it's empty
# This will do NOTHING at all, even though we changed the name # This will do NOTHING at all, even though we changed the name
p.save() p.save()