def METHOD_NAME(self):
    # enableWIKI = False, and can_publish_repo = True
    assert self.user.permissions._get_perm_by_roles('can_publish_repo') is True
    assert self.user.permissions.can_publish_repo() is False