File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,15 @@ def _runTest(self, args):
100
100
101
101
def test_defaults (self ):
102
102
img1 , img2 , img3 = self ._runTest ([datastore .fetch ('Easy1.png' )])
103
- assert (hashlib .sha256 (img1 .convert ('L' ).tobytes ()).hexdigest () ==
104
- 'd46d8554ba626b8800cb7457d6a8d6c4e6915c75092fd783e0bfa2d4e85c06ec' )
105
- assert (hashlib .sha256 (img2 .convert ('L' ).tobytes ()).hexdigest () ==
106
- 'c48c3d21b674981ad38b902061b779cda5c605fda5e20a81894051e2a032e736' )
107
- assert (hashlib .sha256 (img3 .convert ('L' ).tobytes ()).hexdigest () ==
108
- '479066d2016122b2b60575f4e9abe201b4f79d8a894ce76191419e21c7539186' )
103
+ assert hashlib .sha256 (img1 .convert ('L' ).tobytes ()).hexdigest () in {
104
+ 'd46d8554ba626b8800cb7457d6a8d6c4e6915c75092fd783e0bfa2d4e85c06ec' ,
105
+ '0ba7081bd71ca517e2beb96904b333485a93dc3eeab21590cca2bb4ab19b298e' ,
106
+ }
107
+ assert hashlib .sha256 (img2 .convert ('L' ).tobytes ()).hexdigest () in {
108
+ 'c48c3d21b674981ad38b902061b779cda5c605fda5e20a81894051e2a032e736' ,
109
+ 'adf0cf7246f395182e326b9798b8134e2ccfd021e607026cc97f2251be9c0f6d' ,
110
+ }
111
+ assert hashlib .sha256 (img3 .convert ('L' ).tobytes ()).hexdigest () in {
112
+ '479066d2016122b2b60575f4e9abe201b4f79d8a894ce76191419e21c7539186' ,
113
+ 'd06317130f4a4aabd155c97f32cec4708ec3eec24d09d16daa2181f18b2051bb' ,
114
+ }
You can’t perform that action at this time.
0 commit comments