def test_path(self): "Test path attribute" p = TESTDATA / 'test_segment.png' i = InselectImage(p) self.assertEqual(p, i.path) # Check read-only with self.assertRaises(AttributeError): i.path = ''
def test_path(self): "Test path attribute" p = TESTDATA / 'shapes.png' i = InselectImage(p) self.assertEqual(p, i.path) # Check read-only with self.assertRaises(AttributeError): i.path = '' self.assertTrue(i.available) self.assertTrue(i.assert_is_file)