/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_url_policy_open.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 16:49:28 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205164928-nmcybzip5kdhiwon
Use 2to3 set_literal fixer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    def test_check_initial_url(self):
82
82
        # check_and_follow_branch_reference rejects all URLs that are not
83
83
        # allowed.
84
 
        opener = self.make_branch_opener(None, [], set(['a']))
 
84
        opener = self.make_branch_opener(None, [], {'a'})
85
85
        self.assertRaises(
86
86
            BadUrl, opener.check_and_follow_branch_reference, 'a')
87
87
 
288
288
            [a.base, b.base], probers=[TrackingProber])
289
289
        opener.open(b.base)
290
290
        self.assertEqual(
291
 
            set(TrackingProber.seen_urls), set([b.base, a.base]))
 
291
            set(TrackingProber.seen_urls), {b.base, a.base})
292
292
 
293
293
    def test_custom_opener_with_branch_reference(self):
294
294
        # A custom function for opening a control dir can be specified.
300
300
            [a.base, b.base], probers=[TrackingProber])
301
301
        opener.open(b.base)
302
302
        self.assertEqual(
303
 
            set(TrackingProber.seen_urls), set([b.base, a.base]))
 
303
            set(TrackingProber.seen_urls), {b.base, a.base})
304
304
 
305
305
 
306
306
class TestOpenOnlyScheme(TestCaseWithTransport):