'Ensure token login view using JSON POST fails if missing fields.'

def test_token_login_json_missing_fields(self):

    client = APIClient(enforce_csrf_checks=True)
    response = client.post(u'/auth-token/', {u'username': self.username}, format=u'json')
    assert (response.status_code == 400)
