'Test that pull_requests now takes a sort parameter.'

def test_pull_requests_accepts_sort_and_direction(self):

    cassette_name = self.cassette_name('pull_requests_accept_sort')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'betamax')
        assert (repository is not None)
        last_pr = None
        for pr in repository.pull_requests(sort='updated', direction='asc'):
            assert (pr is not None)
            if last_pr:
                assert (last_pr.updated_at < pr.updated_at)
            last_pr = pr
