Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from tests import APITestCase, mainnet_client |
||
2 | |||
3 | |||
4 | class TestTradeHubGetAddress(APITestCase): |
||
5 | |||
6 | def setUp(self) -> None: |
||
7 | self._client = mainnet_client |
||
8 | |||
9 | def test_get_address_structure(self): |
||
10 | """ |
||
11 | Check if response match expected dict structure. |
||
12 | :return: |
||
13 | """ |
||
14 | expect: str = "swth1qlue2pat9cxx2s5xqrv0ashs475n9va963h4hz" |
||
15 | |||
16 | result: str = self._client.get_address("devel484") |
||
17 | |||
18 | # Check type |
||
19 | self.assertIsInstance(result, str) |
||
20 | # Check value |
||
21 | self.assertEqual(result, expect) |
||
22 |