7 # Sanity test that the generator hasn't gone wrong
9 # Look for core classes
10 for clsname
in ["virConnect",
22 assert(clsname
in globals)
23 assert(object in getattr(libvirt
, clsname
).__bases
__)
26 assert("VIR_CONNECT_RO" in globals)
29 assert("libvirtError" in globals)
30 assert("VIR_ERR_AUTH_FAILED" in globals)
31 assert("virGetLastError" in globals)
34 assert("virInitialize" in globals)
35 assert("virEventAddHandle" in globals)
36 assert("virEventRegisterDefaultImpl" in globals)