()
| 17 | |
| 18 | |
| 19 | def test_JSON_basic(): |
| 20 | o = {"test": 1, 2: 4, 3: 2.0} |
| 21 | o_serialized = hashing.get_json(o) |
| 22 | assert isinstance(o_serialized, str) |
| 23 | assert o_serialized == str({"test": 1, "2": 4, "3": 2.0}).replace("'", '"') |
| 24 | |
| 25 | |
| 26 | def test_JSON_with_object(): |