'Test the ability to import an issue.'

def test_import_issue(self):

    self.token_login()
    cassette_name = self.cassette_name('import_issue')
    with self.recorder.use_cassette(cassette_name):
        issue = {'title': 'foo', 'body': 'bar', 'created_at': '2014-03-16T17:15:42Z'}
        repository = self.gh.repository('github3py', 'test_rename1')
        imported_issue = repository.import_issue(**issue)
    isinstance(imported_issue, github3.repos.issue_import.ImportedIssue)
