def _test_equality(self, model: any, *, pk: int, result: dict):
    obj = model.objects.get(pk=pk)
    obj_data = ujson.loads(obj.to_json())
    obj_expected_result = self.get_expected_result(result)
    self.assertEqual(obj_data, obj_expected_result)
def _test_equality(self, model: any, *, pk: int, result: dict):
    obj = model.objects.get(pk=pk)
    obj_data = ujson.loads(obj.to_json())
    obj_expected_result = self.get_expected_result(result)
    self.assertEqual(obj_data, obj_expected_result)