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)
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)