Example #1
0
 def setUp(self):
     self.interface = wnettools.BaseInterface('eth0')
Example #2
0
 def test_interface_name_sanitation(self):
     interface = wnettools.BaseInterface(
         'blahblah; uptime > /tmp/blah | cat')
     self.assertEqual(interface.iface, 'blahblahuptimetmpblahcat')