'Test that the port is not included in the URL if the protocol implies
the port, e.g. http implies 80'

def test_implicit_port(self):

    conn = Connection(secure=True, host='localhost', port=443)
    conn.connect()
    self.assertEqual(conn.connection.host, 'https://localhost')
    conn2 = Connection(secure=False, host='localhost', port=80)
    conn2.connect()
    self.assertEqual(conn2.connection.host, 'http://localhost')
