MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / assert_result

Method assert_result

tests/test_profile_map_v2.py:139–150  ·  view source on GitHub ↗
(self, result, profiles, tests)

Source from the content-addressed store, hash-verified

137
138class ProfileMapV2Tests(unittest.TestCase):
139 def assert_result(self, result, profiles, tests):
140 self.assertIs(type(result), M.ProducedMap)
141 self.assertIs(type(result.profiles_tsv), bytes)
142 self.assertIs(type(result.tests_tsv), bytes)
143 self.assertIs(type(result.profiles_sha256), bytes)
144 self.assertIs(type(result.tests_sha256), bytes)
145 self.assertEqual(result.profiles_tsv, profiles)
146 self.assertEqual(result.tests_tsv, tests)
147 self.assertEqual(result.profiles_sha256, hashlib.sha256(profiles).digest())
148 self.assertEqual(result.tests_sha256, hashlib.sha256(tests).digest())
149 self.assertEqual(len(result.profiles_sha256), 32)
150 self.assertEqual(len(result.tests_sha256), 32)
151
152 def gold(self):
153 result = M.build_profile_map_v2(**gold_fixture())

Calls 1

typeFunction · 0.50

Tested by

no test coverage detected