def test_do_first(self): """First step.""" m = IIIFManipulatorNetpbm() # no image self.assertRaises(IIIFError, m.do_first) # add image, get size m.srcfile = 'testimages/test1.png' self.assertEqual(m.do_first(), None) self.assertEqual(m.width, 175) self.assertEqual(m.height, 131)
def test01_init(self): """Initialize.""" m = IIIFManipulatorNetpbm() self.assertTrue(m.api_version)
def test_do_first_empty(self): """First step with no image.""" m = IIIFManipulatorNetpbm() # no image self.assertRaises(IIIFError, m.do_first)
def test01_init(self): m = IIIFManipulatorNetpbm() self.assertEqual(m.api_version, '2.0')