1. Luke Plant
  2. django

Commits

Pa...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 66f01c1

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

  • Participants
  • Parent commits 805a90a
  • Branches soc2010/test-refactor

Comments (0)

Files changed (1)

File tests/modeltests/expressions/tests.py

View file
  • Ignore whitespace
 class ExpressionsTestCase(TestCase):
     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):
         company_query = Company.objects.values('name','num_employees',
                                                'num_chairs'