def test_validate_required_field_not_set(self):
        serializer = MLModelSerializer(data={})

        with self.assertRaises(ValidationError):
            serializer.validate_field_set(serializer.initial_data, 'name')
    def test_validate_required_field_set(self):
        serializer = MLModelSerializer(data=self.data)

        serializer.validate_field_set(serializer.initial_data, 'name')