Esempio n. 1
0
 def test_serialization(self):
     view = ExportInstructorLocationsView()
     serializer = view.get_serializer_class()
     response = serializer(view.get_queryset(), many=True)
     self.assertEqual(response.data, self.expecting)
Esempio n. 2
0
 def test_serialization(self):
     view = ExportInstructorLocationsView()
     serializer = view.get_serializer_class()
     response = serializer(view.get_queryset(), many=True)
     self.assertEqual(response.data, self.expecting)