def test_replace_orders(self): mock_response = create_mock_json("tests/resources/replace_orders.json") replace_orders = mock_response.json().get("result") resource = resources.ReplaceOrders(elapsed_time=self.ELAPSED_TIME, **replace_orders) assert resource.elapsed_time == self.ELAPSED_TIME assert resource.market_id == replace_orders["marketId"] assert resource.status == replace_orders["status"] assert resource.customer_ref == replace_orders.get("customerRef") assert resource.error_code == replace_orders.get("errorCode")
def test_replace_orders(self): mock_response = create_mock_json('tests/resources/replace_orders.json') replace_orders = mock_response.json().get('result') resource = resources.ReplaceOrders(elapsed_time=self.ELAPSED_TIME, **replace_orders) assert resource.elapsed_time == self.ELAPSED_TIME assert resource.market_id == replace_orders['marketId'] assert resource.status == replace_orders['status'] assert resource.customer_ref == replace_orders.get('customerRef') assert resource.error_code == replace_orders.get('errorCode')
def test_replace_orders(self): mock_response = create_mock_json('tests/resources/replace_orders.json') replace_orders = mock_response.json().get('result') resource = resources.ReplaceOrders(date_time_sent=self.DATE_TIME_SENT, **replace_orders) assert resource._datetime_sent == self.DATE_TIME_SENT assert resource.market_id == replace_orders['marketId'] assert resource.status == replace_orders['status'] assert resource.customer_ref == replace_orders.get('customerRef') assert resource.error_code == replace_orders.get('errorCode')