コード例 #1
0
 def test_do_first(self):
     """Test do_first."""
     m = IIIFManipulatorGen()
     # no image
     self.assertRaises(IIIFError, m.do_first)
     # add image, get size
     m.srcfile = 'check'
     self.assertEqual(m.do_first(), None)
     self.assertEqual(m.width, 19683)
     self.assertEqual(m.height, 19683)
     # module does not exist
     m = IIIFManipulatorGen()
     m.srcfile = 'does_not_exits_really'
     self.assertRaises(IIIFError, m.do_first)
コード例 #2
0
ファイル: test_manipulator_gen.py プロジェクト: edsilv/iiif
 def test_do_first(self):
     """Test do_first."""
     m = IIIFManipulatorGen()
     # no image
     self.assertRaises(IIIFError, m.do_first)
     # add image, get size
     m.srcfile = "check"
     self.assertEqual(m.do_first(), None)
     self.assertEqual(m.width, 19683)
     self.assertEqual(m.height, 19683)
     # module does not exist
     m = IIIFManipulatorGen()
     m.srcfile = "does_not_exits_really"
     self.assertRaises(IIIFError, m.do_first)