154
154
"blah blah blah",
157
def test_commit_with_more_authors(self):
158
# user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
159
author = ('Sue Wong', 'sue@example.com', 1234565432, -6 * 3600)
160
committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
162
('Al Smith', 'al@example.com', 1234565432, -6 * 3600),
163
('Bill Jones', 'bill@example.com', 1234565432, -6 * 3600),
165
c = commands.CommitCommand("refs/heads/master", "bbb", author,
166
committer, "release v1.0", ":aaa", None, None, more_authors)
167
self.assertEqualDiff(
168
"commit refs/heads/master\n"
170
"author Sue Wong <sue@example.com> 1234565432 -0600\n"
171
"author Al Smith <al@example.com> 1234565432 -0600\n"
172
"author Bill Jones <bill@example.com> 1234565432 -0600\n"
173
"committer Joe Wong <joe@example.com> 1234567890 -0600\n"
179
def test_commit_with_properties(self):
180
# user tuple is (name, email, secs-since-epoch, secs-offset-from-utc)
181
committer = ('Joe Wong', 'joe@example.com', 1234567890, -6 * 3600)
183
u'greeting': u'hello',
186
c = commands.CommitCommand("refs/heads/master", "bbb", None,
187
committer, "release v1.0", ":aaa", None, None, None, properties)
188
self.assertEqualDiff(
189
"commit refs/heads/master\n"
191
"committer Joe Wong <joe@example.com> 1234567890 -0600\n"
158
203
class TestFeatureDisplay(tests.TestCase):