def test_emit_c_code(self): ffi = cffi.FFI() ffi.set_source("foobar", "??") c_file = str(udir.join('test_emit_c_code')) ffi.emit_c_code(c_file) assert os.path.isfile(c_file)