Esempio n. 1
0
    def test_basic(self):
        "Run the HgClone command and verify that it produces the right repo."
        command = HgClone(self.repository_url)
        command.verbose = True
        command.run(self.context)
 
        pprint.pprint(command.get_results()) # debugging output
 
        os.chdir(self.context.tempdir)
        assert os.path.exists(os.path.join('pony-build-hg-test', 'test1'))
        assert os.path.exists(os.path.join('pony-build-hg-test', 'test2'))
Esempio n. 2
0
    def test_basic(self):
        "Run the HgClone command w/o caching and verify it."
        command = HgClone(self.repository_url, use_cache=False)
        command.verbose = True
        command.run(self.context)
 
        pprint.pprint(command.get_results()) # debugging output
 
        os.chdir(self.context.tempdir)
        assert os.path.exists(os.path.join('pony-build-hg-test', 'test1'))
        assert os.path.exists(os.path.join('pony-build-hg-test', 'test2'))