Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_default_interface(self):
ifcfg.distro = 'Linux'
ifcfg.Parser = LinuxParser
route_output = ifconfig_out.ROUTE_OUTPUT
res = ifcfg.default_interface(
ifconfig=ifconfig_out.LINUX3, route_output=route_output
)
ok_(res)
def test_default_interface(self):
ifcfg.distro = 'Linux'
ifcfg.Parser = UnixIPParser
res = ifcfg.default_interface(
ifconfig=ip_out.LINUX,
route_output=ip_out.ROUTE_OUTPUT_IPROUTE
)
ok_(res)