Exemplo n.º 1
0
class TestUtil(unittest.TestCase):


    def setUp(self):
        cfg.os = cfg.LINUX # supress OS X error message
        self.fw = FireWire(0)


    def tearDown(self):
        pass


    def test_init_OUI(self):
        self.assertIsInstance(self.fw.oui, dict)
        # Test a couple of OUIs
        self.assertEqual(self.fw.resolve_oui(0x03), 'XEROX CORPORATION')
        self.assertEqual(self.fw.resolve_oui(0xE0C1), 
                         'MEMOREX TELEX JAPAN, LTD.')
        self.assertEqual(self.fw.resolve_oui(0xFCFBFB), 'Cisco Systems')
Exemplo n.º 2
0
 def setUp(self):
     cfg.os = cfg.LINUX # supress OS X error message
     self.fw = FireWire(0)