'Test the ability to use the code search endpoint.'

def test_search_code_with_text_match(self):

    cassette_name = self.cassette_name('search_code_with_text_match')
    with self.recorder.use_cassette(cassette_name, match_requests_on=self.match_on):
        result_iterator = self.gh.search_code('HTTPAdapter    in:file    language:python    repo:kennethreitz/requests', text_match=True)
        code_result = next(result_iterator)
    assert isinstance(code_result, github3.search.CodeSearchResult)
    assert (len(code_result.text_matches) > 0)
