Esempio n. 1
0
    def test_get_balance(self, access_token, secret_key):
        client = Client(access_token, secret_key)

        balance = client.get_balance()
        self.assertIsInstance(balance.btc.balance, float)
        self.assertIsInstance(balance.krw.balance, float)
        self.assertIsInstance(balance.btg.balance, float)
Esempio n. 2
0
    def test_get_balance_with_mock(self, mock_request):
        _ = mock_request

        client = Client("access_token", "secret_key")

        balance = client.get_balance()
        self.assertIsInstance(balance.btc.balance, float)
        self.assertIsInstance(balance.krw.balance, float)
        self.assertIsInstance(balance.btg.balance, float)