Ejemplo n.º 1
0
 def test_a_verse(self):
     self.assertEqual(
         verse(8),
         "8 bottles of beer on the wall, 8 bottles of beer.\n"
         "Take one down and pass it around, "
         "7 bottles of beer on the wall.\n"
     )
Ejemplo n.º 2
0
 def test_verse_1(self):
     self.assertEqual(
         verse(1),
         "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"
     )
Ejemplo n.º 3
0
 def test_verse_0(self):
     self.assertEqual(
         verse(0),
         "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"
     )
Ejemplo n.º 4
0
 def test_verse_2(self):
     self.assertEqual(
         verse(2),
         "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"
     )
Ejemplo n.º 5
0
 def test_a_verse(self):
     self.assertEqual(
         verse(8), "8 bottles of beer on the wall, 8 bottles of beer.\n"
         "Take one down and pass it around, 7 bottles of beer on the wall.\n"
     )
Ejemplo n.º 6
0
 def test_verse_0(self):
     self.assertEqual(
         verse(0),
         "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"
     )
Ejemplo n.º 7
0
 def test_verse_2(self):
     self.assertEqual(
         verse(2), "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"
     )
Ejemplo n.º 8
0
 def test_verse_1(self):
     self.assertEqual(
         verse(1), "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"
     )