'Ensure token login view using JSON POST fails if
bad credentials are used'

def test_token_login_json_bad_creds(self):

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