Add some missing asserts to test_compress_compare

This commit is contained in:
dgelessus 2020-01-19 23:24:52 +01:00
parent c41b25fea1
commit 5b2700bf17

View File

@ -149,6 +149,8 @@ class ResourceFileReadTests(unittest.TestCase):
with self.subTest(id=compressed_id): with self.subTest(id=compressed_id):
# The metadata of the compressed and uncompressed resources must match. # The metadata of the compressed and uncompressed resources must match.
self.assertEqual(compressed_res.type, uncompressed_res.type) self.assertEqual(compressed_res.type, uncompressed_res.type)
self.assertEqual(compressed_id, uncompressed_id)
self.assertEqual(compressed_res.id, compressed_id)
self.assertEqual(compressed_res.id, uncompressed_res.id) self.assertEqual(compressed_res.id, uncompressed_res.id)
self.assertEqual(compressed_res.name, uncompressed_res.name) self.assertEqual(compressed_res.name, uncompressed_res.name)
self.assertEqual(compressed_res.attributes & ~rsrcfork.ResourceAttrs.resCompressed, uncompressed_res.attributes) self.assertEqual(compressed_res.attributes & ~rsrcfork.ResourceAttrs.resCompressed, uncompressed_res.attributes)