Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
resetnetwork hostname tester
 N/A re cStringIO StringIO N/A agent_test N/A commands.redhat.network N/A commands.debian.network N/A commands.arch.network N/A commands.gentoo.network N/A commands.suse.network TestHostNameUpdates N/A N/A agent_test TestCase N/A _run_test N/A N/A self dist hostname infile N/A None N/A N/A mod N/A N/A getattr commands dist network N/A infile N/A N/A N/A N/A mod get_hostname_file infile hostname N/A N/A N/A N/A mod get_hostname_file hostname N/A test_redhat_add_entry N/A N/A self N/A N/A N/A Test adding hostname to Red Hat /etc/sysconfig/network N/A infile N/A StringIO N/A NETWORKING=yes
 NETWORKING_IPV6=yes
 N/A data N/A N/A self _run_test redhat example infile N/A N/A N/A self assertEqual data N/A N/A NETWORKING=yes
 NETWORKING_IPV6=yes
 HOSTNAME=example
 N/A test_redhat_update_entry N/A N/A self N/A N/A N/A Test updating hostname in Red Hat /etc/sysconfig/network N/A infile N/A StringIO N/A N/A NETWORKING=yes
 NETWORKING_IPV6=yes
 HOSTNAME=other
 N/A data N/A N/A self _run_test redhat example infile N/A N/A N/A self assertEqual data N/A N/A NETWORKING=yes
 NETWORKING_IPV6=yes
 HOSTNAME=example
 N/A test_debian N/A N/A self N/A N/A N/A Test updating hostname in Debian /etc/hostname N/A data N/A N/A self _run_test debian example N/A N/A N/A self assertEqual data example
 N/A test_arch_add_entry N/A N/A self N/A N/A N/A Test adding hostname to Arch Linux /etc/rc.conf N/A infile N/A StringIO N/A eth0="eth0 192.0.2.42 netmask 255.255.255.0"
 INTERFACES=(eth0)
 N/A data N/A N/A self _run_test arch example infile N/A N/A N/A self assertEqual data N/A N/A eth0="eth0 192.0.2.42 netmask 255.255.255.0"
 INTERFACES=(eth0)
 HOSTNAME="example"
 N/A test_arch_update_entry N/A N/A self N/A N/A N/A Test updating hostname in Arch Linux /etc/rc.conf N/A infile N/A StringIO N/A N/A eth0="eth0 192.0.2.42 netmask 255.255.255.0"
 INTERFACES=(eth0)
 HOSTNAME="other"
 N/A data N/A N/A self _run_test arch example infile N/A N/A N/A self assertEqual data N/A N/A eth0="eth0 192.0.2.42 netmask 255.255.255.0"
 INTERFACES=(eth0)
 HOSTNAME="example"
 N/A test_gentoo N/A N/A self N/A N/A N/A Test updating hostname in Gentoo /etc/conf.d/hostname N/A data N/A N/A self _run_test gentoo example N/A regex_hostname N/A N/A re compile .*HOSTNAME="example"$ N/A re MULTILINE N/A N/A N/A self assertRegexpMatches data regex_hostname N/A test_suse N/A N/A self N/A N/A N/A Test updating hostname in SuSE /etc/HOSTNAME N/A data N/A N/A self _run_test suse example N/A N/A N/A self assertEqual data example
 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A agent_test main