Exemplo n.º 1
0
 def test_calculate_throughput_less_than_a_sec(self):
     throughput, seconds = fd.calculate_throughput('00:00:00', 100)
     self.assertEquals(throughput, 'Unknown')
     self.assertEquals(seconds, 0)
Exemplo n.º 2
0
 def test_calculate_throughput_less_than_a_sec(self):
     throughput, seconds = fd.calculate_throughput('00:00:00', 100)
     self.assertEquals(throughput, 'Unknown')
     self.assertEquals(seconds, 0)
Exemplo n.º 3
0
 def test_calculate_throughput(self):
     throughput, seconds = fd.calculate_throughput('00:00:10', 100)
     self.assertEquals(throughput, 10)
     self.assertEquals(seconds, 10)
Exemplo n.º 4
0
 def test_calculate_throughput(self):
     throughput, seconds = fd.calculate_throughput('00:00:10', 100)
     self.assertEquals(throughput, 10)
     self.assertEquals(seconds, 10)