Exemplo n.º 1
0
    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 = ''
Exemplo n.º 2
0
    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 = ''
Exemplo n.º 3
0
    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)