'Verify the request for editing a repository.'

def test_edit(self):

    data = {'name': 'hello-world', 'description': 'repo    description', 'homepage': 'homepage_url', 'private': True, 'has_issues': True, 'has_wiki': True, 'has_downloads': True, 'default_branch': 'develop'}
    with mock.patch.object(Repository, '_update_attributes') as up_attr:
        assert (self.instance.edit(**data) is True)
        assert (up_attr.called is True)
        self.patch_called_with(url_for(), data=data)
