def test_serializer_not_found(self):
     """ Test not founding a serializer from an app label and his name. """
     ser = get_serializer('notests.AccountSerializer')
     self.assertIsNone(ser)
 def test_serializer_found(self):
     """ Test founding a serializer from an app label and his name. """
     ser = get_serializer('tests.AccountSerializer')
     self.assertEqual(ser, serializers.AccountSerializer)
 def test_direct_to_serializer(self):
     """ Test with no operation to do. """
     ser = get_serializer(serializers.AccountSerializer)
     self.assertEqual(ser, serializers.AccountSerializer)
 def test_serializer_not_found(self):
     """ Test not founding a serializer from an app label and his name. """
     ser = get_serializer('notests.AccountSerializer')
     self.assertIsNone(ser)
 def test_serializer_found(self):
     """ Test founding a serializer from an app label and his name. """
     ser = get_serializer('tests.AccountSerializer')
     self.assertEqual(ser, serializers.AccountSerializer)
 def test_direct_to_serializer(self):
     """ Test with no operation to do. """
     ser = get_serializer(serializers.AccountSerializer)
     self.assertEqual(ser, serializers.AccountSerializer)