def METHOD_NAME(self):
    zip = 'test_getdata_zipfile.zip'
    pkg = 'test_getdata_zipfile'
    # Include a LF and a CRLF, to test that binary data is read back
    RESOURCE_DATA = 'Hello, world!\nSecond line\r\nThird line'
    # Make a package with some resources
    zip_file = os.path.join(self.dirname, zip)
    z = zipfile.ZipFile(zip_file, 'w')
    # Empty init.py
    z.writestr(pkg + '/__init__.py', "")
    # Resource files, res.txt, sub/res.txt
    z.writestr(pkg + '/res.txt', RESOURCE_DATA)
    z.writestr(pkg + '/sub/res.txt', RESOURCE_DATA)
    z.close()
    # Check we can read the resources
    sys.path.insert(0, zip_file)
    res1 = pkgutil.get_data(pkg, 'res.txt')
    self.assertEqual(res1, RESOURCE_DATA)
    res2 = pkgutil.get_data(pkg, 'sub/res.txt')
    self.assertEqual(res2, RESOURCE_DATA)
    del sys.path[0]
    del sys.modules[pkg]