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