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

Cope with -0000 as timezone in Git commits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        c.author = "Author <author>"
175
175
        self.assertRoundtripCommit(c)
176
176
 
 
177
    def test_commit_zero_utc_timezone(self):
 
178
        c = Commit()
 
179
        c.tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
 
180
        c.message = "Some message"
 
181
        c.committer = "Committer <Committer>"
 
182
        c.commit_time = 4
 
183
        c.commit_timezone = 0
 
184
        c._commit_timezone_neg_utc = True
 
185
        c.author_time = 5
 
186
        c.author_timezone = 60 * 2
 
187
        c.author = "Author <author>"
 
188
        self.assertRoundtripCommit(c)
 
189
 
177
190
    def test_commit_encoding(self):
178
191
        c = Commit()
179
192
        c.tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"