/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 breezy/plugins/launchpad/test_lp_directory.py

  • Committer: Jelmer Vernooij
  • Date: 2017-08-31 04:20:58 UTC
  • mfrom: (6772.1.2 offline)
  • Revision ID: jelmer@jelmer.uk-20170831042058-lm5dyb3ulhp9adnm
Merge lp:~jelmer/brz/offline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
    # Bogus distro.
546
546
 
547
547
    def test_bogus_distro(self):
 
548
        factory = FakeResolveFactory(self, 'foo', dict(urls=[]))
548
549
        self.assertRaises(lp_registration.InvalidURL,
549
 
                          self.directory._resolve, 'gentoo:foo')
 
550
                          self.directory._resolve, 'gentoo:foo', factory)
550
551
 
551
552
    def test_trick_bogus_distro_u(self):
 
553
        factory = FakeResolveFactory(self, 'foo', dict(urls=[]))
552
554
        self.assertRaises(lp_registration.InvalidURL,
553
 
                          self.directory._resolve, 'utube:foo')
 
555
                          self.directory._resolve, 'utube:foo', factory)
554
556
 
555
557
    def test_trick_bogus_distro_d(self):
 
558
        factory = FakeResolveFactory(self, 'foo', dict(urls=[]))
556
559
        self.assertRaises(lp_registration.InvalidURL,
557
 
                          self.directory._resolve, 'debuntu:foo')
 
560
                          self.directory._resolve, 'debuntu:foo', factory)
558
561
 
559
562
    def test_missing_ubuntu_distroseries_without_project(self):
560
563
        # Launchpad does not hold source packages for Intrepid.  Missing or