def test_normal_bar_model(self):
    self.create_bar_objects()
    results = self.normal_bar_results()
    for i in range(1, 4):
        self._test_equality(BarModel, pk=i, result=results[i])
    json_array = ujson.loads(BarModel.to_json_array(BarModel.objects.all()))
    self.assertEqual(json_array, self.get_expected_result(results.values()))
def test_normal_bar_model(self):
    self.create_bar_objects()
    results = self.normal_bar_results()
    for i in range(1, 4):
        self._test_equality(BarModel, pk=i, result=results[i])
    json_array = ujson.loads(BarModel.to_json_array(BarModel.objects.all()))
    self.assertEqual(json_array, self.get_expected_result(results.values()))