mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #17938 -- Made explicit object ordering in LiveServerDatabase test assertion. Thanks Nate Bragg for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -211,5 +211,8 @@ class LiveServerDatabase(LiveServerBase): | ||||
|         Refs #2879. | ||||
|         """ | ||||
|         self.urlopen('/create_model_instance/') | ||||
|         names = [person.name for person in Person.objects.all()] | ||||
|         self.assertEquals(names, ['jane', 'robert', 'emily']) | ||||
|         self.assertQuerysetEqual( | ||||
|             Person.objects.all().order_by('pk'), | ||||
|             ['jane', 'robert', 'emily'], | ||||
|             lambda b: b.name | ||||
|         ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user