<s> import github3 <EOL> from . helper import IntegrationHelper <EOL> class TestGitHubSession ( IntegrationHelper ) : <EOL> def test_two_factor_authentication_works ( self ) : <EOL> def _two_factor_auth ( ) : <EOL> return '<STR_LIT>' <EOL> two_factor_auth = _two_factor_auth <EOL> self . basic_login ( ) <EOL> self . gh . login ( two_factor_callback = two_factor_auth ) <EOL> cassette_name = self . cassette_name ( '<STR_LIT>' ) <EOL> assert isinstance ( self . session , github3 . session . GitHubSession ) <EOL> match = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> with self . recorder . use_cassette ( cassette_name , <EOL> match_requests_on = match ) : <EOL> r = self . session . get ( '<STR_LIT>' ) <EOL> assert r . status_code == <NUM_LIT:200> </s>
