<s> import unittest <EOL> from JustReleaseNotes . issuers import GitHubIssues <EOL> import requests <EOL> import requests_mock <EOL> class GitHubIssues_Test ( unittest . TestCase ) : <EOL> def test_retrieveIssueInfoWhenNoCachedData_ConnectsToTheSource ( self ) : <EOL> requests . packages . urllib3 . disable_warnings ( ) <EOL> ticketResponse = '<STR_LIT>' '<STR_LIT>' <EOL> config = { "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" } <EOL> with requests_mock . mock ( ) as m : <EOL> m . get ( '<STR_LIT>' , text = ticketResponse ) <EOL> m . get ( '<STR_LIT>' , text = '<STR_LIT:{}>' ) <EOL> issuer = GitHubIssues . GitHubIssues ( config ) ; <EOL> ticketInfo = issuer . getTicketInfo ( "<STR_LIT>" ) <EOL> self . assertEqual ( "<STR_LIT>" , ticketInfo [ "<STR_LIT>" ] ) <EOL> self . assertEqual ( "<STR_LIT>" , ticketInfo [ "<STR_LIT:title>" ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
