~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_lp_directory.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        self.assertResolve('bzr+ssh://bazaar.launchpad.net/+branch/ubuntu',
122
122
                           'lp:ubuntu')
123
123
 
 
124
    def test_ubuntu_invalid(self):
 
125
        """Invalid ubuntu urls don't crash.
 
126
 
 
127
        :seealso: http://pad.lv/843900
 
128
        """
 
129
        # This ought to be natty-updates.
 
130
        self.assertRaises(errors.InvalidURL,
 
131
            self.assertResolve,
 
132
            '',
 
133
            'ubuntu:natty/updates/smartpm')
 
134
 
124
135
    def test_ubuntu_apt(self):
125
136
        self.assertResolve('bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/apt',
126
137
                           'lp:ubuntu/apt')