Пример #1
0
 def test_tx_bytes(self):
     _, value = net_stat.rx_tx_bytes(
         self.interface
     )
     self.assertTrue(value >= 0, value)
Пример #2
0
 def test_tx_bytes(self):
     _, value = net_stat.rx_tx_bytes(self.interface)
     self.assertTrue(value >= 0, value)
 def test_rx_tx_bytes(self):
     rx, tx = net_stat.rx_tx_bytes(
         self.interface
     )
     self.assertTrue(rx >= 0, rx)
     self.assertTrue(tx >= 0, tx)