示例#1
0
文件: test.py 项目: jmtd/inkfoundry
 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)
示例#2
0
文件: test.py 项目: jmtd/inkfoundry
 def test_verify_mapping_ok(self):
     sources = ['t/colormap.wad']
     self.assertIsNone(verify_mapping(sources, 0, 0, 33, 0))
示例#3
0
文件: test.py 项目: jmtd/inkfoundry
 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)