Did I find the right examples for you? yes no

All Samples(39)  |  Call(36)  |  Derive(0)  |  Import(3)

src/p/y/python-veracity-0.0.11/veracity/test/test_objects.py   python-veracity(Download)
 
from veracity.test import TEST_REPO, REASON
from veracity.test import log, create_temp_repo, delete_temp_repo
 
 
    def test_init_existing(self):
        """Verify a repository can be created from an existing repository."""
        repo = Repository(TEST_REPO.name)
        log(repo)
        self.assertEqual(TEST_REPO, repo)
    def test_init_clone(self):
        """Verify a repository can be created as a clone."""
        with Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO) as repo:
            log(repo)
 
    def test_init_new(self):
        """Verify a new repository can be created."""
        with Repository(TEMP_REPO.name + '-new', create=True) as repo:
            log(repo)
            self.assertEqual(TEMP_REPO.name + '-new', str(repo))
    def test_delete(self):
        """Verify a repository can not be used after it is deleted."""
        repo2 = Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO.name)
        with Repository(TEMP_REPO.name + '-clone', remote=TEMP_REPO.name) as repo:
            log(repo, repo2)

src/p/y/python-veracity-0.0.11/veracity/test/test_builder.py   python-veracity(Download)
from veracity.common import Config
 
from veracity.test import TEST_REPO, REASON, FILES, log, create_temp_repo, delete_temp_repo
 
 
        builder2 = Builder(TEST_REPO.name, Config(envs=['W']))
        builder3 = Builder(TEST_REPO.name, Config(envs=['L']))
        log(builder1, builder2, builder3)
        self.assertEqual(builder1, builder2)
        self.assertNotEqual(builder1, builder3)

src/p/y/python-veracity-0.0.11/veracity/test/test_poller.py   python-veracity(Download)
 
from veracity.test import TEST_REPO, REASON, FILES
from veracity.test import log, create_temp_repo, delete_temp_repo
 
 
        poller2 = Poller(TEST_REPO.name, Config(series=['N']))
        poller3 = Poller(TEST_REPO.name, Config(series=['C']))
        log(poller1, poller2, poller3)
        self.assertEqual(poller1, poller2)
        self.assertNotEqual(poller1, poller3)