Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | # !/usr/bin/python |
||
11 | class TestSticker(unittest.TestCase): |
||
12 | """ |
||
13 | Test cases for the sticker model |
||
14 | """ |
||
15 | |||
16 | def test_sticker(self): |
||
17 | """Test the conversion to the APIResponse object and the json.dumps |
||
18 | |||
19 | :return: |
||
20 | """ |
||
21 | sticker = Sticker( |
||
22 | name="Howling Dawn", |
||
23 | image="some_sticker_image_link", |
||
24 | wear_value=0.43092 |
||
25 | ) |
||
26 | |||
27 | # assert that all values can get loaded properly and parsed to APIResponse objects |
||
28 | self.assertEqual(str(sticker), str(APIResponse(json.dumps(sticker.__dict__)))) |
||
29 | |||
34 |