Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)