'Ensure token login view using form POST works.'

def test_token_login_form(self):

    client = APIClient(enforce_csrf_checks=True)
    response = client.post(u'/auth-token/', {u'username': self.username, u'password': self.password})
    assert (response.status_code == status.HTTP_200_OK)
    assert (response.data[u'token'] == self.key)
