1
0
mirror of https://github.com/django/django.git synced 2025-07-05 02:09:13 +00:00

[soc2010/test-refactor] update expressions test to use unittest2 assertItemsEqual

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/test-refactor@13414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2010-07-02 17:53:09 +00:00
parent c298937c94
commit dfd3da2853

View File

@ -8,10 +8,6 @@ from models import Employee, Company
class ExpressionsTestCase(TestCase): class ExpressionsTestCase(TestCase):
fixtures = ['f_expression_testdata.json'] fixtures = ['f_expression_testdata.json']
def assertItemsEqual(self, a, b):
#fixme, replace with unittest2 function
return self.assertEqual(sorted(a), sorted(b))
def test_basic_f_expression(self): def test_basic_f_expression(self):
company_query = Company.objects.values('name','num_employees', company_query = Company.objects.values('name','num_employees',
'num_chairs' 'num_chairs'