'Test that the connection class will parse URLs correctly'

def test_connection_url_merging(self):

    conn = Connection(url='http://test.com/')
    conn.connect()
    self.assertEqual(conn.connection.host, 'http://test.com')
    with requests_mock.mock() as m:
        m.get('http://test.com/test', text='data')
        response = conn.request('/test')
    self.assertEqual(response.body, 'data')
