<s> import unittest <EOL> import requests_mock <EOL> import JustReleaseNotes . issuers <EOL> from JustReleaseNotes . issuers import factory <EOL> class factory_Test ( unittest . TestCase ) : <EOL> def test_factoryRetrievesGithubIssues ( self ) : <EOL> with requests_mock . mock ( ) as m : <EOL> m . get ( '<STR_LIT>' , text = "<STR_LIT:{}>" ) <EOL> self . assertIsNotNone ( JustReleaseNotes . issuers . factory . create ( <EOL> { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } ) ) <EOL> def test_factoryRetrievesJiraIssues ( self ) : <EOL> self . assertIsNotNone ( JustReleaseNotes . issuers . factory . create ( <EOL> { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } ) ) <EOL> def test_factorySupportsArrayOfIssuers ( self ) : <EOL> self . assertIsInstance ( JustReleaseNotes . issuers . factory . create ( <EOL> [ { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } , <EOL> { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } ] ) , JustReleaseNotes . issuers . AggregateIssuer . AggregateIssuer ) <EOL> def test_failsIfIssuerUnknown ( self ) : <EOL> with self . assertRaises ( Exception ) : <EOL> JustReleaseNotes . issuers . factory . create ( { "<STR_LIT>" : "<STR_LIT>" } ) </s>
