def test_sell(self, access_token): client = Client(access_token) order = client.sell(13000000, 0.001) self.assertEqual(order.result, "success") self.assertEqual(order.error_code, 0) self.assertIsInstance(order.order_id, str)
def test_sell_with_mock(self, mock_request): _ = mock_request client = Client("access_token") order = client.sell(13000000, 0.001) self.assertEqual(order.result, "success") self.assertEqual(order.error_code, 0) self.assertIsInstance(order.order_id, str)