<s> '''<STR_LIT>''' <EOL> import unittest <EOL> from certfuzz . db . couchdb import db <EOL> class Test ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_format_url ( self ) : <EOL> import itertools <EOL> for host , port in itertools . product ( [ '<STR_LIT:foo>' , '<STR_LIT:bar>' , '<STR_LIT>' , '<STR_LIT>' ] , range ( <NUM_LIT:20> ) ) : <EOL> self . assertEqual ( '<STR_LIT>' + host + '<STR_LIT::>' + str ( port ) + '<STR_LIT:/>' , db . format_url ( host , port ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
