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())
def test_tx_absent(self): d = Device() self.assertEqual(False, d.can_receive()) self.assertEqual(nullExportedState, d.get_tx_driver())