/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 more granular timezones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        c._committer = "Committer"
71
71
        c._commit_time = 4
72
72
        c._author_time = 5
73
 
        c._commit_timezone = 4
74
 
        c._author_timezone = 5
 
73
        c._commit_timezone = 500
 
74
        c._author_timezone = 600
75
75
        c._author = "Author"
76
76
        c.serialize()
77
77
        rev = BzrGitMappingv1().import_commit(c)
78
78
        self.assertEquals("Some message", rev.message)
79
79
        self.assertEquals("Committer", rev.committer)
80
80
        self.assertEquals("Author", rev.properties['author'])
81
 
        self.assertEquals(4, rev.timezone)
 
81
        self.assertEquals(300, rev.timezone)
82
82
        self.assertEquals((), rev.parent_ids)
83
83
        self.assertEquals("5", rev.properties['author-timestamp'])
84
 
        self.assertEquals("5", rev.properties['author-timezone'])
 
84
        self.assertEquals("360.000000", rev.properties['author-timezone'])
85
85
        self.assertEquals("git-v1:" + c.id, rev.revision_id)
86
86
 
87
87
 
116
116
        c._message = "Some message"
117
117
        c._committer = "Committer"
118
118
        c._commit_time = 4
119
 
        c._commit_timezone = -3
 
119
        c._commit_timezone = -0500
120
120
        c._author_time = 5
121
 
        c._author_timezone = 1
 
121
        c._author_timezone = 0600
122
122
        c._author = "Author"
123
123
        self.assertRoundtripCommit(c)
124
124