def METHOD_NAME(self):
    contents = set(resources.contents(self.data))
    # There may be cruft in the directory listing of the data directory.
    # Under Python 3 we could have a __pycache__ directory, and under
    # Python 2 we could have .pyc files.  These are both artifacts of the
    # test suite importing these modules and writing these caches.  They
    # aren't germane to this test, so just filter them out.
    contents.discard('__pycache__')
    contents.discard('__init__.pyc')
    contents.discard('__init__.pyo')
    self.assertEqual(contents, {
        '__init__.py',
        'subdirectory',
        'utf-8.file',
        'binary.file',
        'utf-16.file',
        })