'Helper method for getting the client and user and logging in. Returns client.'

def login_client(self, user):

    client = APIClient()
    client.login(username=user.username, password=self.TEST_PASSWORD)
    return client
