/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

Use public properties to set git objects values.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
    def test_commit(self):
67
67
        c = Commit()
68
 
        c._tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
69
 
        c._message = "Some message"
70
 
        c._committer = "Committer"
71
 
        c._commit_time = 4
72
 
        c._author_time = 5
73
 
        c._commit_timezone = 500
74
 
        c._author_timezone = 600
75
 
        c._author = "Author"
 
68
        c.tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
 
69
        c.message = "Some message"
 
70
        c.committer = "Committer"
 
71
        c.commit_time = 4
 
72
        c.author_time = 5
 
73
        c.commit_timezone = 500
 
74
        c.author_timezone = 600
 
75
        c.author = "Author"
76
76
        c.serialize()
77
77
        rev = BzrGitMappingv1().import_commit(c)
78
78
        self.assertEquals("Some message", rev.message)
112
112
 
113
113
    def test_commit(self):
114
114
        c = Commit()
115
 
        c._tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
116
 
        c._message = "Some message"
117
 
        c._committer = "Committer <Committer>"
118
 
        c._commit_time = 4
119
 
        c._commit_timezone = -0500
120
 
        c._author_time = 5
121
 
        c._author_timezone = 0600
122
 
        c._author = "Author <author>"
 
115
        c.tree = "cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
 
116
        c.message = "Some message"
 
117
        c.committer = "Committer <Committer>"
 
118
        c.commit_time = 4
 
119
        c.commit_timezone = -0500
 
120
        c.author_time = 5
 
121
        c.author_timezone = 0600
 
122
        c.author = "Author <author>"
123
123
        self.assertRoundtripCommit(c)
124
124