def test_result_of_compile(self): signature = b"s" call_arg = b"arg" _, func = compile_simple(signature) self.assertEqual(func(call_arg), [(ord(signature), call_arg)])
def test_compile(self): signature = b"s" off, _ = compile_simple(signature) self.assertEqual(signature, off)