self.assertEqual(set(MyModel._meta.get_all_field_names()), set(['a', 'b']))
self.assertEqual(set(MyModel._meta.get_all_field_names()), set(['b', 'a']))
How to achieve assertDictEqual with assertSequenceEqual applied to values