/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_directory_service.py

  • Committer: Aaron Bentley
  • Date: 2008-06-26 06:03:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3514.
  • Revision ID: aaron@aaronbentley.com-20080626060336-jawagd0ir0l6gurr
Add :push and :this

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        branch.set_bound_location('http://d')
75
75
        self.assertEqual('http://d', directories.dereference(':bound'))
76
76
 
 
77
    def test_lookup_push(self):
 
78
        branch = self.make_branch('.')
 
79
        branch.set_push_location('http://e')
 
80
        self.assertEqual('http://e', directories.dereference(':push'))
 
81
 
 
82
    def test_lookup_this(self):
 
83
        branch = self.make_branch('.')
 
84
        self.assertEqual(branch.base, directories.dereference(':this'))
 
85
 
77
86
    def test_lookup_badname(self):
78
87
        branch = self.make_branch('.')
79
88
        e = self.assertRaises(errors.InvalidLocationAlias,