def test_plurals(self): result = bottles.sing(100) self.assertTrue(result.count(" 2 bottles ")) self.assertFalse(result.count(" 1 bottles ")) self.assertFalse(result.count(" 0 bottle of"))
def test_occurrences(self, n: int): result = bottles.sing(n) self.assertEqual(result.count("Take one down and pass it around,"), n)
import bottles print(bottles.sing(99))