/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/git/tests/test_dir.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        gd = controldir.ControlDir.open('.')
45
45
        self.assertEqual(
46
46
            "%s,branch=master" %
47
 
                urlutils.local_path_to_url(os.path.abspath(".")),
 
47
            urlutils.local_path_to_url(os.path.abspath(".")),
48
48
            gd.get_branch_reference())
49
49
 
50
50
    def test_open_existing(self):
69
69
 
70
70
    def test_git_file(self):
71
71
        gitrepo = GitRepo.init("blah", mkdir=True)
72
 
        self.build_tree_contents([('foo/', ), ('foo/.git', b'gitdir: ../blah/.git\n')])
 
72
        self.build_tree_contents(
 
73
            [('foo/', ), ('foo/.git', b'gitdir: ../blah/.git\n')])
73
74
 
74
75
        gd = controldir.ControlDir.open('foo')
75
76
        self.assertEqual(gd.control_url.rstrip('/'),
84
85
 
85
86
    def test_get_format_description(self):
86
87
        self.assertEqual("Local Git Repository",
87
 
                          self.format.get_format_description())
 
88
                         self.format.get_format_description())
88
89
 
89
90
    def test_eq(self):
90
91
        format2 = dir.LocalGitControlDirFormat()
92
93
        self.assertEqual(self.format, self.format)
93
94
        bzr_format = controldir.format_registry.make_controldir("default")
94
95
        self.assertNotEqual(self.format, bzr_format)
95