Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/p/y/python-veracity-0.0.11/veracity/test/test_objects.py   python-veracity(Download)
    def test_init_instance(self):
        """Verify a working copy can be checked out from an existing Repository instance."""
        with TEST_REPO.checkout(tempfile.mkdtemp()) as wc:
            log(wc)
            self.assertTrue(os.path.isdir(wc.path))
    def test_delete(self):
        """Verify a working copy can not be used after it is deleted."""
        with TEST_REPO.checkout(tempfile.mkdtemp()) as wc:
            log(wc)
            self.assertTrue(wc.valid())
    def test_getattr(self):
        """Verify attribute access behaves normally for working copies."""
        with TEST_REPO.checkout(tempfile.mkdtemp()) as wc:
            self.assertRaises(AttributeError, getattr, wc, '_invalid')
 
    def test_update(self):
        """Verify a working copy can be updated to a branch and revision."""
        with TEST_REPO.checkout(tempfile.mkdtemp()) as wc:
    def test_chdir(self):
        """Verify a working copy sub-directory can be entered."""
        with TEST_REPO.checkout(tempfile.mkdtemp()) as wc:
            log(wc)
            os.mkdir(os.path.join(wc.path, 'temp'))