@util.writes_bytecode_files
def test_bad_magic(self):

    def test(name, mapping, bytecode_path):
        self.import_(mapping[name], name)
        with open(bytecode_path, 'rb') as bytecode_file:
            self.assertEqual(bytecode_file.read(4), self.util.MAGIC_NUMBER)
    self._test_bad_magic(test)
@util.writes_bytecode_files
def test_bad_magic(self):

    def test(name, mapping, bytecode_path):
        self.import_(mapping[name], name)
        with open(bytecode_path, 'rb') as bytecode_file:
            self.assertEqual(bytecode_file.read(4), self.util.MAGIC_NUMBER)
    self._test_bad_magic(test)