def test_latest(self):
        _travis = _get_travispy()
        repo = get_travis_repo(_travis, 'travispy/on_pypy')

        builds = get_historical_builds(_travis, repo)
        build = next(builds)
        assert build.repository_id == 2598880
        assert build.id == repo.last_build_id