def test_jwt_login_json_bad_creds(self):
        self.data['password'] = 'wrong'

        response = self.client.post(
            '/auth-token/',
            json.dumps(self.data),
            content_type='application/json'
        )

        self.assertEqual(response.status_code, 400)
Ensure JWT login view using JSON POST fails
dataset/ETHPy150Open jpadilla/django-jwt-auth/tests/test_views.py/ObtainJSONWebTokenTestCase.test_jwt_login_json_bad_creds