示例#1
0
 def test_Region_label(self):
     R = RegionGeneric(5, label='test xx')
     self.assertEqual(R._get_label(), 'testxx')
示例#2
0
 def test_Region_label(self):
     R = RegionGeneric(5, label='test xx')
     self.assertEqual(R._get_label(), 'testxx')
示例#3
0
 def test_Region_InvalidBbox(self):
     R = RegionGeneric(5, label='test')
     with self.assertRaises(ValueError):
         R._check_bbox_validity(5, 4, 1, 2)
     with self.assertRaises(ValueError):
         R._check_bbox_validity(3, 4, 2, 1)
示例#4
0
 def test_Region_InvalidBbox(self):
     R = RegionGeneric(5, label='test')
     with self.assertRaises(ValueError):
         R._check_bbox_validity(5, 4, 1, 2)
     with self.assertRaises(ValueError):
         R._check_bbox_validity(3, 4, 2, 1)