Skip to content

Commit

Permalink
fix PEP8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed May 26, 2015
1 parent be88a50 commit 3479bc1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions master/buildbot/test/unit/test_changes_gerritchangesource.py
Expand Up @@ -34,38 +34,38 @@ def test_proper_json(self):
def test_missing_username(self):
self.assertEqual(u"Justin Case <justin.case@example.com>",
gerritchangesource._gerrit_user_to_author({
"name": "Justin Case",
"email": "justin.case@example.com"
"name": "Justin Case",
"email": "justin.case@example.com"
}))

def test_missing_name(self):
self.assertEqual(u"unknown <justin.case@example.com>",
gerritchangesource._gerrit_user_to_author({
"email": "justin.case@example.com"
"email": "justin.case@example.com"
}))
self.assertEqual(u"gerrit <justin.case@example.com>",
gerritchangesource._gerrit_user_to_author({
"email": "justin.case@example.com"
"email": "justin.case@example.com"
}, u"gerrit"))
self.assertEqual(u"justincase <justin.case@example.com>",
gerritchangesource._gerrit_user_to_author({
"username": "justincase",
"email": "justin.case@example.com"
"username": "justincase",
"email": "justin.case@example.com"
}, u"gerrit"))

def test_missing_email(self):
self.assertEqual(u"Justin Case",
gerritchangesource._gerrit_user_to_author({
"username": "justincase",
"name": "Justin Case"
"username": "justincase",
"name": "Justin Case"
}))
self.assertEqual(u"Justin Case",
gerritchangesource._gerrit_user_to_author({
"name": "Justin Case"
"name": "Justin Case"
}))
self.assertEqual(u"justincase",
gerritchangesource._gerrit_user_to_author({
"username": "justincase"
"username": "justincase"
}))
self.assertEqual(u"unknown",
gerritchangesource._gerrit_user_to_author({
Expand Down

0 comments on commit 3479bc1

Please sign in to comment.