<s> """<STR_LIT>""" <EOL> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> from houston import utils <EOL> class ParseEndpointTests ( unittest . TestCase ) : <EOL> def test_http_with_default_port ( self ) : <EOL> value = '<STR_LIT>' <EOL> expectation = { '<STR_LIT>' : '<STR_LIT:http>' , <EOL> '<STR_LIT:host>' : '<STR_LIT>' , <EOL> '<STR_LIT:port>' : <NUM_LIT> } <EOL> self . assertDictEqual ( utils . parse_endpoint ( value ) , expectation ) <EOL> def test_https_with_default_port ( self ) : <EOL> value = '<STR_LIT>' <EOL> expectation = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:host>' : '<STR_LIT>' , <EOL> '<STR_LIT:port>' : <NUM_LIT> } <EOL> self . assertDictEqual ( utils . parse_endpoint ( value ) , expectation ) <EOL> def test_http_with_specified_port ( self ) : <EOL> value = '<STR_LIT>' <EOL> expectation = { '<STR_LIT>' : '<STR_LIT:http>' , <EOL> '<STR_LIT:host>' : '<STR_LIT>' , <EOL> '<STR_LIT:port>' : <NUM_LIT> } <EOL> self . assertDictEqual ( utils . parse_endpoint ( value ) , expectation ) <EOL> def test_https_with_specified_port ( self ) : <EOL> value = '<STR_LIT>' <EOL> expectation = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:host>' : '<STR_LIT>' , <EOL> '<STR_LIT:port>' : <NUM_LIT> } <EOL> self . assertDictEqual ( utils . parse_endpoint ( value ) , expectation ) <EOL> def test_unix_socket_endpoint ( self ) : <EOL> value = '<STR_LIT>' <EOL> expectation = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:host>' : '<STR_LIT>' , <EOL> '<STR_LIT:port>' : None } <EOL> self . assertDictEqual ( utils . parse_endpoint ( value ) , expectation ) </s>
