Example #1
0
 def test_verify_mapping_dst_out_of_range(self):
     sources = ['t/colormap.wad']
     with self.assertRaises(Exception):
         verify_mapping(sources, 0, 34,  0,  0)
     with self.assertRaises(Exception):
         verify_mapping(sources, 0,  0, 34,  0)
     with self.assertRaises(Exception):
         verify_mapping(sources, 0,  0,  0, 34)
Example #2
0
 def test_verify_mapping_ok(self):
     sources = ['t/colormap.wad']
     self.assertIsNone(verify_mapping(sources, 0, 0, 33, 0))
Example #3
0
 def test_verify_mapping_range_too_large(self):
     sources = ['t/colormap.wad']
     with self.assertRaises(Exception):
         verify_mapping(sources, 0, 15,  0,  0)
     with self.assertRaises(Exception):
         verify_mapping(sources, 0,  0, 15, 19)