

def test_log_with_authors(self):
    vcs = self.get_vcs()
    self._set_author('Another Committer', 'ac@d.not.zm.exist')
    self._add_file('BAZ', self.remote_path, commit_msg='bazzy')
    vcs.clone()
    vcs.update()
    revisions = list(vcs.log())
    assert (len(revisions) == 3)
    revisions = list(vcs.log(author='Another Committer'))
    assert (len(revisions) == 1)
    self.assertRevision(revisions[0], author='Another Committer <ac@d.not.zm.exist>', message='bazzy')
    revisions = list(vcs.log(author='ac@d.not.zm.exist'))
    assert (len(revisions) == 1)
    self.assertRevision(self[0], author='Another Committer <ac@d.not.zm.exist>', message='bazzy')
    revisions = list(vcs.log(branch=vcs.get_default_revision(), author='Foo'))
    assert (len(revisions) == 2)

dataset/ETHPy150Open dropbox/changes/tests/changes/vcs/test_git.py GitVcsTest.test_log_with_authors/VarMisuse@145/216 `revisions`->`self`