Example #1
0
 def test_tx_present(self):
     txd = _TestTXDriver([])
     d = Device(tx_driver=txd)
     self.assertEqual(True, d.can_transmit())
     self.assertEqual(txd, d.get_tx_driver())
Example #2
0
 def test_tx_present(self):
     txd = _TestTXDriver([])
     d = Device(tx_driver=txd)
     self.assertEqual(True, d.can_transmit())
     self.assertEqual(txd, d.get_tx_driver())
Example #3
0
 def test_tx_absent(self):
     d = Device()
     self.assertEqual(False, d.can_receive())
     self.assertEqual(nullExportedState, d.get_tx_driver())
Example #4
0
 def test_tx_absent(self):
     d = Device()
     self.assertEqual(False, d.can_receive())
     self.assertEqual(nullExportedState, d.get_tx_driver())