def METHOD_NAME(self):
    self.dp_data['data_product_type'] = 'invalid'
    with open('tom_dataproducts/tests/test_data/test_lightcurve.csv', 'rb') as lightcurve_file:
        self.dp_data['file'] = lightcurve_file
        response = self.client.post(reverse('api:dataproducts-list'), self.dp_data, format='multipart')
        self.assertContains(response, 'Not a valid data_product_type.', status_code=status.HTTP_400_BAD_REQUEST)