'Test that a connection with a base path (e.g. /v1/) will
add the base path to requests'

def test_connect_with_prefix(self):

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