<s> """<STR_LIT>""" <EOL> import github3 <EOL> import uritemplate <EOL> from . helper import ( GitHubEnterpriseHelper , IntegrationHelper , <EOL> GitHubStatusHelper ) <EOL> SSH_KEY = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) <EOL> class TestGitHub ( IntegrationHelper ) : <EOL> """<STR_LIT>""" <EOL> match_on = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def test_authorize ( self ) : <EOL> """<STR_LIT>""" <EOL> from . . conftest import credentials <EOL> username , password = credentials <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> auth = self . gh . authorize ( username , password , <EOL> note = '<STR_LIT>' , <EOL> note_url = '<STR_LIT>' ) <EOL> assert isinstance ( auth , github3 . auths . Authorization ) <EOL> def test_add_email_addresses ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> emails = self . gh . add_email_addresses ( <EOL> [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> ) <EOL> for email in emails : <EOL> assert isinstance ( email , github3 . users . Email ) <EOL> def test_create_gist ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> g = self . gh . create_gist ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : { '<STR_LIT:content>' : '<STR_LIT>' } } <EOL> ) <EOL> assert isinstance ( g , github3 . gists . Gist ) <EOL> assert g . public is True <EOL> def test_create_issue ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> i = self . gh . create_issue ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> "<STR_LIT>" <EOL> ) <EOL> assert isinstance ( i , github3 . issues . Issue ) <EOL> assert i . title == '<STR_LIT>' <EOL> assert i . body == "<STR_LIT>" <EOL> def test_create_key ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> k = self . gh . create_key ( '<STR_LIT>' , SSH_KEY ) <EOL> k . delete ( ) <EOL> assert isinstance ( k , github3 . users . Key ) <EOL> assert k . title == '<STR_LIT>' <EOL> assert k . key == SSH_KEY <EOL> def test_create_repository ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> r = self . gh . create_repository ( '<STR_LIT>' , <EOL> description = '<STR_LIT>' ) <EOL> assert isinstance ( r , github3 . repos . Repository ) <EOL> assert str ( r ) == '<STR_LIT>' <EOL> def test_delete_email_addresses ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> assert self . gh . delete_email_addresses ( <EOL> [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> ) is True <EOL> def test_emojis ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> emojis = self . gh . emojis ( ) <EOL> assert isinstance ( emojis , dict ) <EOL> assert emojis [ '<STR_LIT>' ] . startswith ( '<STR_LIT>' ) <EOL> def test_emojis_etag ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> emojis = self . gh . emojis ( ) <EOL> assert '<STR_LIT>' not in emojis <EOL> assert '<STR_LIT>' not in emojis <EOL> def test_feeds ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> feeds = self . gh . feeds ( ) <EOL> _links = feeds . pop ( '<STR_LIT>' ) <EOL> for urls in feeds . values ( ) : <EOL> if not isinstance ( urls , list ) : <EOL> urls = [ urls ] <EOL> for url in urls : <EOL> assert isinstance ( url , uritemplate . URITemplate ) <EOL> for links in _links . values ( ) : <EOL> if not isinstance ( links , list ) : <EOL> links = [ links ] <EOL> for link in links : <EOL> href = link . get ( '<STR_LIT>' ) <EOL> assert ( href is None or <EOL> isinstance ( href , uritemplate . URITemplate ) ) <EOL> def test_gist ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> g = self . gh . gist ( <NUM_LIT> ) <EOL> assert isinstance ( g , github3 . gists . Gist ) <EOL> def test_gitignore_template ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> t = self . gh . gitignore_template ( '<STR_LIT>' ) <EOL> assert t is not None <EOL> assert t != '<STR_LIT>' <EOL> def test_key ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT:key>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> key = self . gh . key ( <NUM_LIT> ) <EOL> assert isinstance ( key , github3 . users . Key ) <EOL> def test_license ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> license = self . gh . license ( '<STR_LIT>' ) <EOL> assert isinstance ( license , github3 . licenses . License ) <EOL> def test_licenses ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> licenses = list ( self . gh . licenses ( ) ) <EOL> assert len ( licenses ) > <NUM_LIT:0> <EOL> license = licenses [ <NUM_LIT:0> ] <EOL> assert isinstance ( license , github3 . licenses . License ) <EOL> def test_markdown ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> text = "<STR_LIT>" <EOL> mode = '<STR_LIT>' <EOL> markdown = self . gh . markdown ( text = text , mode = mode ) <EOL> html = '<STR_LIT>' <EOL> assert markdown == html <EOL> def test_non_existent_gitignore_template ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> t = self . gh . gitignore_template ( '<STR_LIT>' ) <EOL> assert t is not None <EOL> assert t == '<STR_LIT>' <EOL> def test_gitignore_templates ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> l = self . gh . gitignore_templates ( ) <EOL> assert l != [ ] <EOL> assert isinstance ( l , list ) <EOL> def test_is_following ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> assert self . gh . is_following ( '<STR_LIT>' ) is True <EOL> def test_is_starred ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> assert self . gh . is_starred ( '<STR_LIT>' , '<STR_LIT>' ) is True <EOL> def test_issue ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> i = self . gh . issue ( '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:1> ) <EOL> assert isinstance ( i , github3 . issues . Issue ) <EOL> def test_all_organizations ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for r in self . gh . all_organizations ( number = <NUM_LIT> ) : <EOL> assert isinstance ( r , github3 . orgs . Organization ) <EOL> def test_all_repositories ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for r in self . gh . all_repositories ( number = <NUM_LIT> ) : <EOL> assert isinstance ( r , github3 . repos . repo . Repository ) <EOL> def test_all_users ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for u in self . gh . all_users ( number = <NUM_LIT> ) : <EOL> assert isinstance ( u , github3 . users . User ) <EOL> def test_all_events ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for e in self . gh . all_events ( number = <NUM_LIT> ) : <EOL> assert isinstance ( e , github3 . events . Event ) <EOL> def test_followers_of ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for u in self . gh . followers_of ( '<STR_LIT>' , number = <NUM_LIT> ) : <EOL> assert isinstance ( u , github3 . users . User ) <EOL> def test_followers ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for u in self . gh . followers ( ) : <EOL> assert isinstance ( u , github3 . users . User ) <EOL> def test_user_teams ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for t in self . gh . user_teams ( ) : <EOL> assert isinstance ( t , github3 . orgs . Team ) <EOL> def test_me ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> me = self . gh . me ( ) <EOL> assert isinstance ( me , github3 . users . User ) <EOL> def test_meta ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> m = self . gh . meta ( ) <EOL> assert isinstance ( m , dict ) <EOL> def test_notifications ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for notification in self . gh . notifications ( ) : <EOL> assert isinstance ( notification , github3 . notifications . Thread ) <EOL> assert notification . unread is True <EOL> def test_notifications_all ( self ) : <EOL> """<STR_LIT>""" <EOL> self . basic_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> read_notifications = [ ] <EOL> unread_notifications = [ ] <EOL> for notification in self . gh . notifications ( all = True ) : <EOL> assert isinstance ( notification , github3 . notifications . Thread ) <EOL> if notification . unread : <EOL> unread_notifications . append ( notification ) <EOL> else : <EOL> read_notifications . append ( notification ) <EOL> assert len ( read_notifications ) > <NUM_LIT:0> <EOL> assert len ( unread_notifications ) > <NUM_LIT:0> <EOL> def test_octocat ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> say = '<STR_LIT>' <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> o = self . gh . octocat ( ) <EOL> assert o is not None <EOL> assert o is not '<STR_LIT>' <EOL> o = self . gh . octocat ( say ) <EOL> assert say in o <EOL> def test_organization ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> o = self . gh . organization ( '<STR_LIT>' ) <EOL> assert isinstance ( o , github3 . orgs . Organization ) <EOL> def test_pubsubhubbub ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name , <EOL> ** self . betamax_simple_body ) : <EOL> topic = '<STR_LIT>' <EOL> status = self . gh . pubsubhubbub ( <EOL> mode = '<STR_LIT>' , <EOL> topic = topic , <EOL> callback = '<STR_LIT>' <EOL> ) <EOL> assert status <EOL> def test_pull_request ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> p = self . gh . pull_request ( '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT> ) <EOL> assert isinstance ( p , github3 . pulls . PullRequest ) <EOL> def test_rate_limit ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> r = self . gh . rate_limit ( ) <EOL> assert isinstance ( r , dict ) <EOL> assert '<STR_LIT>' in r <EOL> def test_repository ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> r = self . gh . repository ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> assert isinstance ( r , github3 . repos . repo . Repository ) <EOL> def test_repository_with_id ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> r = self . gh . repository_with_id ( <NUM_LIT> ) <EOL> assert isinstance ( r , github3 . repos . repo . Repository ) <EOL> def test_repositories ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> self . basic_login ( ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for r in self . gh . repositories ( ) : <EOL> assert isinstance ( r , github3 . repos . Repository ) <EOL> def test_repositories_by ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> for r in self . gh . repositories_by ( '<STR_LIT>' ) : <EOL> assert isinstance ( r , github3 . repos . Repository ) <EOL> def test_search_code ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> result_iterator = self . gh . search_code ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) <EOL> code_result = next ( result_iterator ) <EOL> assert isinstance ( code_result , github3 . search . CodeSearchResult ) <EOL> def test_search_code_with_text_match ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name , <EOL> match_requests_on = self . match_on ) : <EOL> result_iterator = self . gh . search_code ( <EOL> ( '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> text_match = True <EOL> ) <EOL> code_result = next ( result_iterator ) <EOL> assert isinstance ( code_result , github3 . search . CodeSearchResult ) <EOL> assert len ( code_result . text_matches ) > <NUM_LIT:0> <EOL> def test_search_users ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> users = self . gh . search_users ( '<STR_LIT>' ) <EOL> assert isinstance ( next ( users ) , <EOL> github3 . search . UserSearchResult ) <EOL> assert isinstance ( users , github3 . structs . SearchIterator ) <EOL> def test_search_users_with_text_match ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name , <EOL> match_requests_on = self . match_on ) : <EOL> users = self . gh . search_users ( '<STR_LIT>' , <EOL> text_match = True ) <EOL> user_result = next ( users ) <EOL> assert isinstance ( user_result , <EOL> github3 . search . UserSearchResult ) <EOL> assert isinstance ( users , github3 . structs . SearchIterator ) <EOL> assert len ( user_result . text_matches ) > <NUM_LIT:0> <EOL> def test_search_issues ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> issues = self . gh . search_issues ( '<STR_LIT>' ) <EOL> assert isinstance ( next ( issues ) , github3 . search . IssueSearchResult ) <EOL> assert isinstance ( issues , github3 . structs . SearchIterator ) <EOL> def test_search_repositories ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> repos = self . gh . search_repositories ( '<STR_LIT>' ) <EOL> assert isinstance ( next ( repos ) , <EOL> github3 . search . RepositorySearchResult ) <EOL> assert isinstance ( repos , github3 . structs . SearchIterator ) <EOL> def test_search_repositories_with_text_match ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name , <EOL> match_requests_on = self . match_on ) : <EOL> repos = self . gh . search_repositories ( '<STR_LIT>' , <EOL> text_match = True ) <EOL> repo_result = next ( repos ) <EOL> assert isinstance ( repo_result , <EOL> github3 . search . RepositorySearchResult ) <EOL> assert isinstance ( repos , github3 . structs . SearchIterator ) <EOL> assert len ( repo_result . text_matches ) > <NUM_LIT:0> <EOL> def test_star ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> starred = self . gh . star ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> assert starred is True <EOL> def test_update_me ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> self . basic_login ( ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> assert self . gh . update_me ( name = '<STR_LIT>' ) is True <EOL> assert self . gh . update_me ( name = '<STR_LIT>' ) is True <EOL> def test_user ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT:user>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> sigmavirus24 = self . gh . user ( '<STR_LIT>' ) <EOL> assert isinstance ( sigmavirus24 , github3 . users . User ) <EOL> try : <EOL> assert repr ( sigmavirus24 ) <EOL> except UnicodeEncodeError : <EOL> self . fail ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> def test_unfollow ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> unfollowed = self . gh . unfollow ( '<STR_LIT>' ) <EOL> assert unfollowed is True <EOL> def test_unstar ( self ) : <EOL> """<STR_LIT>""" <EOL> self . token_login ( ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> unstarred = self . gh . unstar ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> assert unstarred is True <EOL> def test_user_with_id ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> sigmavirus24 = self . gh . user_with_id ( <NUM_LIT> ) <EOL> assert isinstance ( sigmavirus24 , github3 . users . User ) <EOL> def test_zen ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> z = self . gh . zen ( ) <EOL> assert z is not None <EOL> assert z != '<STR_LIT>' <EOL> class TestGitHubEnterprise ( GitHubEnterpriseHelper ) : <EOL> def test_admin_stats ( self ) : <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> self . token_login ( ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> stats = self . gh . admin_stats ( '<STR_LIT:all>' ) <EOL> assert isinstance ( stats , dict ) <EOL> class TestGitHubStatus ( GitHubStatusHelper ) : <EOL> def setUp ( self ) : <EOL> super ( TestGitHubStatus , self ) . setUp ( ) <EOL> def test_api ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> api = self . gh . api ( ) <EOL> assert isinstance ( api , dict ) <EOL> def test_last_message ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> last_message = self . gh . last_message ( ) <EOL> assert isinstance ( last_message , dict ) <EOL> def test_messages ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> messages = self . gh . messages ( ) <EOL> assert isinstance ( messages , list ) <EOL> def test_status ( self ) : <EOL> """<STR_LIT>""" <EOL> cassette_name = self . cassette_name ( '<STR_LIT:status>' ) <EOL> with self . recorder . use_cassette ( cassette_name ) : <EOL> status = self . gh . status ( ) <EOL> assert isinstance ( status , dict ) </s>
