'Test the ability to fork a repository.'

def test_create_fork(self):

    self.token_login()
    betamax_kwargs = {'match_requests_on': ['method', 'uri', 'json-body']}
    cassette_name = self.cassette_name('create_fork')
    with self.recorder.use_cassette(cassette_name, **betamax_kwargs):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        forked_repo = repository.create_fork()
        assert isinstance(forked_repo, github3.repos.Repository)
        org_forked_repo = repository.create_fork('mattchung')
        assert isinstance(org_forked_repo, github3.repos.Repository)
