Beispiel #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)
Beispiel #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)
Beispiel #3
0
 def test_calculate_throughput(self):
     throughput, seconds = fd.calculate_throughput('00:00:10', 100)
     self.assertEquals(throughput, 10)
     self.assertEquals(seconds, 10)
Beispiel #4
0
 def test_calculate_throughput(self):
     throughput, seconds = fd.calculate_throughput('00:00:10', 100)
     self.assertEquals(throughput, 10)
     self.assertEquals(seconds, 10)