def test_rx_tx_dump(self):
     rx, tx = net_stat.rx_tx_bits(
         self.interface
     )
     rx, tx = map(int, (rx, tx))
     self.assertTrue(rx >= 0, rx)
     self.assertTrue(tx >= 0, tx)
Esempio n. 2
0
 def test_tx_bits(self):
     _, value = net_stat.rx_tx_bits(self.interface)
     self.assertTrue(value >= 0, value)
 def test_tx_bits(self):
     _, value = net_stat.rx_tx_bits(
         self.interface
     )
     self.assertTrue(value >= 0, value)
 def test_rx_tx_bits(self):
     rx, tx = net_stat.rx_tx_bits(
         self.interface
     )
     self.assertTrue(rx >= 0, rx)
     self.assertTrue(tx >= 0, tx)