def assertFields(m, expected):
    actual = [(f.name, f.field_type) for f in m._meta.sorted_fields]
    self.assertEqual(actual, expected)
def assertFields(m, expected):
    actual = [(f.name, f.field_type) for f in m._meta.sorted_fields]
    self.assertEqual(actual, expected)