def test_post_required(self):
        response = self.client.get(self.url)
        self.assertEqual(response.status_code, 405, "GET should not be allowed.")
Test logins with either list or string JSON payload
dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/DeleteTestCase.test_post_required--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/netapi/rest_tornado/test_handlers.py/TestSaltAuthHandler.test_login_invalid_data_structure