def METHOD_NAME(self):
    request = self.factory.post(
        '/api/water-temperature-threshold/?location_site={site}&water_temperature={temp}'.format(
            site=self.location_site.id,
            temp=self.water_temperature.id
        ),
        {
            'maximum_threshold': 26}
    )
    request.user = AnonymousUser()
    response = self.view(request)
    self.assertEqual(response.status_code, 404)