:type username: str
    :type context: behave.runner.Context

def given_i_am_logged_in(context, username):
    """
    :type username: str
    :type context: behave.runner.Context
    """
    user = get_user_model().objects.get(username=username)
    context.apiClient.force_authenticate(user=user)