コード例 #1
0
ファイル: testwnettools.py プロジェクト: j1ah0ng/wicd
 def setUp(self):
     self.interface = wnettools.BaseInterface('eth0')
コード例 #2
0
ファイル: testwnettools.py プロジェクト: j1ah0ng/wicd
 def test_interface_name_sanitation(self):
     interface = wnettools.BaseInterface(
         'blahblah; uptime > /tmp/blah | cat')
     self.assertEqual(interface.iface, 'blahblahuptimetmpblahcat')