Пример #1
0
  def testBlankLineLastWord(self):
    poetry   = Poetry()
    line     = "     "
    expected = ""

    results = poetry._lastWord(line)

    self.assertEqual(expected, results)
Пример #2
0
  def testOnlyWordLastWord(self):
    poetry   = Poetry()
    line     = "problem"
    expected = "problem"

    results = poetry._lastWord(line)

    self.assertEqual(expected, results)