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)
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)