

def test_post_is_405(self):
    request = self.factory.post(reverse('cropduster-index'), {
        
    })
    response = views.index(request)
    self.assertEqual(response.status_code, 405)

dataset/ETHPy150Open theatlantic/django-cropduster/cropduster/tests/test_views.py TestIndex.test_post_is_405/original