MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_json

Method test_json

tests/data/test_hashing.py:50–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48class TestJSONHashing(unittest.TestCase):
49
50 def test_json(self):
51 data_dict1 = {"b": "str2", "a": "str1"}
52 data_dict2 = {"a": "str1", "b": "str2"}
53
54 h1 = json_hashing(data_dict1)
55 h2 = json_hashing(data_dict2)
56 self.assertEqual(h1, h2)
57
58
59if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

json_hashingFunction · 0.90

Tested by

no test coverage detected