Conditions | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # !/usr/bin/python |
||
13 | def test_sticker(self) -> None: |
||
14 | """Test the conversion to the APIResponse object and the json.dumps |
||
15 | |||
16 | :return: |
||
17 | """ |
||
18 | sticker = Sticker( |
||
19 | name="Howling Dawn", |
||
20 | image="some_sticker_image_link", |
||
21 | wear_value=0.43092 |
||
22 | ) |
||
23 | |||
24 | # assert that all values can get loaded properly and parsed to APIResponse objects |
||
25 | self.assertEqual(str(sticker), str(APIResponse(json.dumps(sticker.__dict__)))) |
||
26 | |||
31 |