def test_Region_label(self): R = RegionGeneric(5, label='test xx') self.assertEqual(R._get_label(), 'testxx')
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)