<s> from tests . test_helper import * <EOL> class TestEnvironment ( unittest . TestCase ) : <EOL> def test_server_and_port_for_development ( self ) : <EOL> port = os . getenv ( "<STR_LIT>" ) or "<STR_LIT>" <EOL> self . assertEquals ( "<STR_LIT>" + port , Environment . Development . server_and_port ) <EOL> def test_base_url ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Sandbox . base_url ) <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Production . base_url ) <EOL> def test_server_and_port_for_sandbox ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Sandbox . server_and_port ) <EOL> def test_server_and_port_for_production ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Production . server_and_port ) <EOL> def test_server_for_development ( self ) : <EOL> self . assertEquals ( "<STR_LIT:localhost>" , Environment . Development . server ) <EOL> def test_server_for_sandbox ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Sandbox . server ) <EOL> def test_server_for_production ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Production . server ) <EOL> def test_port_for_development ( self ) : <EOL> port = os . getenv ( "<STR_LIT>" ) or "<STR_LIT>" <EOL> port = int ( port ) <EOL> self . assertEquals ( port , Environment . Development . port ) <EOL> def test_port_for_sandbox ( self ) : <EOL> self . assertEquals ( <NUM_LIT> , Environment . Sandbox . port ) <EOL> def test_port_for_production ( self ) : <EOL> self . assertEquals ( <NUM_LIT> , Environment . Production . port ) <EOL> def test_is_ssl_for_development ( self ) : <EOL> self . assertFalse ( Environment . Development . is_ssl ) <EOL> def test_is_ssl_for_sandbox ( self ) : <EOL> self . assertTrue ( Environment . Sandbox . is_ssl ) <EOL> def test_is_ssl_for_production ( self ) : <EOL> self . assertTrue ( Environment . Production . is_ssl ) <EOL> def test_protocol_for_development ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Development . protocol ) <EOL> def test_protocol_for_sandbox ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Sandbox . protocol ) <EOL> def test_protocol_for_production ( self ) : <EOL> self . assertEquals ( "<STR_LIT>" , Environment . Production . protocol ) <EOL> def test_ssl_certificate_for_development ( self ) : <EOL> self . assertEquals ( None , Environment . Development . ssl_certificate ) </s>
