def _unpack_test(self, cls):
        # Format a package with the given formatter class
        copier = self._get_copier(cls)
        copier.copy(self.tmpdir)

        # Unpack that package. Its content is expected to match that of a Flat
        # formatted package.
        registry = FileRegistry()
        unpack_to_registry(self.tmpdir, registry)
        self.assertEqual(get_contents(registry, read_all=True), self.contents)
示例#2
0
 def setUpClass(cls):
     cls.contents = get_contents(cls._get_copier(FlatFormatter),
                                 read_all=True)
 def setUpClass(cls):
     cls.contents = get_contents(cls._get_copier(FlatFormatter),
                                 read_all=True)