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