'Test that issues will be returned in ascending order.'

def test_issues_sorts_ascendingly(self):

    cassette_name = self.cassette_name('issues_ascending')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'betamax')
        assert (repository is not None)
        issues = list(repository.issues(direction='asc'))
    assert (len(issues) > 0)
    last_issue = None
    for issue in issues:
        assert isinstance(issue, github3.issues.Issue)
        if last_issue:
            assert (last_issue.number < issue.number)
        last_issue = issue
