def test_max_length(self): with self.assertRaises(ValueError): fmt_perf(["test", 1, 2, 3, 4, 5, 6])
def test_min_length(self): with self.assertRaises(ValueError): fmt_perf([]) with self.assertRaises(ValueError): fmt_perf(["test"])
def test_ok(self): self.assertEqual("test=1", fmt_perf(["test", 1]))