def test_a_couple_verses(): expected = ("99 bottles of beer on the wall, " + "99 bottles of beer.\n" + "Take one down and pass it around, " + "98 bottles of beer on the wall.\n" + "\n" + "98 bottles of beer on the wall, " + "98 bottles of beer.\n" + "Take one down and pass it around, " + "97 bottles of beer on the wall.\n") assert_that(expected).is_equal_to(Bottles.verses(99, 98))
def test_a_few_verses(): expected = ("2 bottles of beer on the wall, " + "2 bottles of beer.\n" + "Take one down and pass it around, " + "1 bottle of beer on the wall.\n" + "\n" + "1 bottle of beer on the wall, " + "1 bottle of beer.\n" + "Take it down and pass it around, " + "no more bottles of beer on the wall.\n" + "\n" + "No more bottles of beer on the wall, " + "no more bottles of beer.\n" + "Go to the store and buy some more, " + "99 bottles of beer on the wall.\n") assert_that(expected).is_equal_to(Bottles.verses(2, 0))