def METHOD_NAME(self):
    with patch('seahub.base.accounts.MULTI_TENANCY', MULTI_TENANCY_TRUE):
        assert self.user.permissions.can_add_public_repo() is True
    with patch('seahub.base.accounts.MULTI_TENANCY', MULTI_TENANCY_FALSE):
        assert self.user.permissions.can_add_public_repo() is False