def test_valid_throughput_numeric(self): task = self.task(target_throughput=3.2) self.assertEqual(track.Throughput(3.2, "ops/s"), task.target_throughput)
def test_valid_throughput_numeric(self): task = self.task(target_throughput=3.2) assert track.Throughput(3.2, "ops/s") == task.target_throughput
def test_valid_throughput_with_unit(self): task = self.task(target_throughput="5 MB/s") self.assertEqual(track.Throughput(5.0, "MB/s"), task.target_throughput)
def test_valid_throughput_with_unit(self): task = self.task(target_throughput="5 MB/s") assert track.Throughput(5.0, "MB/s") == task.target_throughput