mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-13 06:53:24 -05:00
fix: state no size for several accepted sizes
This commit is contained in:
1 parent
eb8c7e5267
commit
d4ae1a76e8
2 files changed
+17
-1
No files matched your search
@@ -196,6 +196,13 @@ class MisterCountsWhatItWrites(unittest.TestCase):
|
||||
|
||||
|
||||
class ModelKeepsOneFileOneEntry(unittest.TestCase):
|
||||
def test_a_list_of_sizes_is_not_one_size(self):
|
||||
"""A profile may accept several revisions; int() on the list crashed."""
|
||||
several = NativeFile("a.bin", "a.bin", "s", truth={"size": [1024, 2048], "crc32": "aaaaaaaa"})
|
||||
single = NativeFile("b.bin", "b.bin", "s", truth={"size": [1024], "crc32": "aaaaaaaa"})
|
||||
self.assertIsNone(several.size())
|
||||
self.assertEqual(single.size(), 1024)
|
||||
|
||||
def test_size_describes_the_hash_written(self):
|
||||
fe = NativeFile("boot.bin", "dc/boot.bin", "dc",
|
||||
platform={"size": 2097152, "md5": A}, truth={"size": 480})
|
||||
|
||||
Reference in new issue
Block a user