def test_alternate_api_endpoint(self): connection = OAuthConnection(client_id='123', store_hash='abcdef', host='barbaz.com') self.assertEqual(connection.full_path('time'), 'https://barbaz.com/stores/abcdef/v2/time')
def test_full_path(self): connection = OAuthConnection(client_id='123', store_hash='abcdef') self.assertEqual(connection.full_path('time'), 'https://api.bigcommerce.com/stores/abcdef/v2/time')
def test_alternate_api_endpoint(self): connection = OAuthConnection(client_id="123", store_hash="abcdef", host="barbaz.com") self.assertEqual(connection.full_path("time"), "https://barbaz.com/stores/abcdef/v2/time")
def test_full_path(self): connection = OAuthConnection(client_id="123", store_hash="abcdef") self.assertEqual(connection.full_path("time"), "https://api.bigcommerce.com/stores/abcdef/v2/time")