def test_createOrgRepo(mockGithub):
    gh = GitHub(token='foo')
    gh.github = mockGithub
    org = gh._getOrg('testOrg')
    gh._createOrgRepo('testOrg', 'testRepo')

    org.create_repo.assert_called_with(name='testRepo', has_issues=True, auto_init=True, private=True)
def test_getOrg(mockGithub):
    gh = GitHub(token='foo')
    gh.github = mockGithub
    gh._getOrg('test')

    mockGithub.get_organization.assert_called_with('test')