def test20_parse_w_comma_h(self): r = IIIFRequest() self.assertEquals( r._parse_w_comma_h('1,2','a'), (1,2) )
def test01_parse_w_comma_h(self): """Test w,h parsing.""" r = IIIFRequest() self.assertEqual(r._parse_w_comma_h('1,2', 'a'), (1, 2)) self.assertRaises(IIIFError, r._parse_w_comma_h, ',', 'region') self.assertRaises(IIIFError, r._parse_w_comma_h, '1.0,1.0', 'size')
def test20_parse_w_comma_h(self): r = IIIFRequest() self.assertEquals( r._parse_w_comma_h('1,2','a'), (1,2) ) self.assertRaises( IIIFError, r._parse_w_comma_h, ',', 'region' ) self.assertRaises( IIIFError, r._parse_w_comma_h, '1.0,1.0', 'size' )
def test20_parse_w_comma_h(self): r = IIIFRequest(api_version='1.1') self.assertEquals( r._parse_w_comma_h('1,2','a'), (1,2) )
def test20_parse_w_comma_h(self): r = IIIFRequest(api_version='1.1') self.assertEquals(r._parse_w_comma_h('1,2', 'a'), (1, 2))
def test20_parse_w_comma_h(self): r = IIIFRequest(api_version="1.1") self.assertEquals(r._parse_w_comma_h("1,2", "a"), (1, 2))