~camptocamp/anybox.recipe.openerp/1.8-fix_github-nbi

« back to all changes in this revision

Viewing changes to anybox/recipe/openerp/vcs/tests/test_bzr.py

  • Committer: Georges Racinet
  • Date: 2014-05-16 14:48:56 UTC
  • Revision ID: gracinet@ishtar.anybox.fr-20140516144856-c1ixqjyvoib6ecb1
launchpad #1320198: gp.vcsdevelop (actually pip) does not accept bzr revids

Not a problem to get back to revids, because it's actually pip's job to
detect the change of URL if any, which it does.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        self.assertTrue(parents[0].startswith('revid:test@example.org-'),
97
97
                        msg="Result does not look to be a revid")
98
98
 
 
99
    def test_parents_pip(self):
 
100
        target_dir = os.path.join(self.dst_dir, "My branch")
 
101
        branch = BzrBranch(target_dir, self.src_repo)
 
102
        branch('last:1')
 
103
        self.assertRevision2(branch, msg="Test impaired by other problem")
 
104
 
 
105
        parents = branch.parents(pip_compatible=True)
 
106
        self.assertEquals(parents, ['2'])
 
107
 
99
108
    def test_branch_options_conflict(self):
100
109
        target_dir = os.path.join(self.dst_dir, "My branch")
101
110
        branch = BzrBranch(target_dir, self.src_repo,