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

  • Committer: Jelmer Vernooij
  • Date: 2012-01-03 13:08:44 UTC
  • mto: This revision was merged to the branch mainline in revision 6418.
  • Revision ID: jelmer@samba.org-20120103130844-2vccdsj9k4c69p99
Fix some indentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
    def regen_text(self, wt, **kwargs):
98
98
        sio = StringIO()
99
 
        builder = RioVersionInfoBuilder(wt.branch, working_tree=wt,
100
 
                                        **kwargs)
 
99
        builder = RioVersionInfoBuilder(wt.branch, working_tree=wt, **kwargs)
101
100
        builder.generate(sio)
102
101
        val = sio.getvalue()
103
102
        return val
135
134
 
136
135
    def regen(self, wt, **kwargs):
137
136
        sio = StringIO()
138
 
        builder = RioVersionInfoBuilder(wt.branch, working_tree=wt,
139
 
                                        **kwargs)
 
137
        builder = RioVersionInfoBuilder(wt.branch, working_tree=wt, **kwargs)
140
138
        builder.generate(sio)
141
139
        sio.seek(0)
142
140
        stanzas = list(read_stanzas(sio))
154
152
        self.assertEqual(['bloe'], stanza.get_all('bla'))
155
153
 
156
154
    def get_one_stanza(self, stanza, key):
157
 
        new_stanzas = list(read_stanzas(
158
 
                            StringIO(stanza[key].encode('utf8'))))
 
155
        new_stanzas = list(read_stanzas(StringIO(stanza[key].encode('utf8'))))
159
156
        self.assertEqual(1, len(new_stanzas))
160
157
        return new_stanzas[0]
161
158