def test_partial_magic(self):

    def test(name, mapping, bytecode_path):
        self.import_(mapping[name], name)
        with open(bytecode_path, 'rb') as file:
            self.assertGreater(len(file.read()), 16)
    self._test_partial_magic(test)
def test_partial_magic(self):

    def test(name, mapping, bytecode_path):
        self.import_(mapping[name], name)
        with open(bytecode_path, 'rb') as file:
            self.assertGreater(len(file.read()), 16)
    self._test_partial_magic(test)