'Test that a directory\'s contents can be retrieved.'

@pytest.mark.xfail((requests.__build__ >= 135424), reason='Requests    breaks    our    recorded    cassettes')
def test_directory_contents(self):

    cassette_name = self.cassette_name('directory_contents')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('sigmavirus24', 'github3.py')
        contents = repository.directory_contents('github3/search/')
    for (filename, content) in contents:
        assert (content.name == filename)
        assert isinstance(content, github3.repos.contents.Contents)
