def METHOD_NAME(self):
    serializer = TimeseriesSerializer(
        data={
            "type": "Initial",
            "timeseries_group": self.timeseries_group.id,
            "time_step": "",
        }
    )
    assert serializer.is_valid(), serializer.errors
    self.assertEqual(serializer.validated_data["type"], 100)