def test_getRevisionAuthor(self):
    self.phab.differential.revision.search.return_value = test.mocks.phabricator.Result([{'fields': {'authorPHID': 'PHID-USER-2345'}}])
    expectedAuthor = {'phid': 'PHID-USER-2345'}
    self.phab.user.search.return_value = test.mocks.phabricator.Result([expectedAuthor])
    actualAuthor = self.phab.getRevisionAuthor('D1234')
    self.assertEqual(actualAuthor, expectedAuthor)
def test_getRevisionAuthor(self):
    self.phab.differential.revision.search.return_value = test.mocks.phabricator.Result([{'fields': {'authorPHID': 'PHID-USER-2345'}}])
    expectedAuthor = {'phid': 'PHID-USER-2345'}
    self.phab.user.search.return_value = test.mocks.phabricator.Result([expectedAuthor])
    actualAuthor = self.phab.getRevisionAuthor('D1234')
    self.assertEqual(actualAuthor, expectedAuthor)