

def test_commit(self):
    commit = self.client.commits.show('ask/python-github2', self.commit_id)
    eq_(commit.message, 'Added cache support to manage_collaborators.')
    eq_(commit.parents, [{
        'id': '7d1c855d2f44a55e4b90b40017be697cf70cb4a0',
    }])
    eq_(commit.url, ('/ask/python-github2/commit/%s' % self.commit_id))
    eq_(commit.author['login'], 'JNRowe')
    eq_(commit.id, self.commit_id)
    eq_(commit.committed_date, datetime(2011, 6, 6, 16, 13, 50))
    eq_(commit.authored_date, datetime(2011, 6, 6, 16, 13, 50))
    eq_(commit.tree, 'f48fcc1a0b8ea97f3147dc42cf7cdb6683493e94')
    eq_(commit.committer['login'], 'JNRowe')
    eq_(commit.added, None)
    eq_(commit.removed, None)
    eq_(commit.modified[0]['filename'], 'github2/bin/manage_collaborators.py')

dataset/ETHPy150Open ask/python-github2/tests/test_commits.py CommitProperties.test_commit/original