Exemple #1
0
 def test06_do_rotation(self):
     m = IIIFManipulator()
     m.request = IIIFRequest()
     m.request.rotation_deg = 0.0
     m.do_rotation()
     # non 0.0 raises
     m.request.rotation_deg = 1.0
     self.assertRaises(IIIFError, m.do_rotation)
Exemple #2
0
 def test06_do_rotation(self):
     m = IIIFManipulator()
     m.request = IIIFRequest()
     m.request.rotation_deg = 0.0
     m.do_rotation()
     # non 0.0 raises
     m.request.rotation_deg = 1.0
     self.assertRaises( IIIFError, m.do_rotation )
Exemple #3
0
 def test06_do_rotation(self):
     """Test do_rotation, error if any rotation."""
     m = IIIFManipulator()
     m.request = IIIFRequest()
     m.do_rotation(False, 0.0)
     # mirror raises
     self.assertRaises(IIIFError, m.do_rotation, True, 0.0)
     # non 0.0 raises
     self.assertRaises(IIIFError, m.do_rotation, False, 10.0)