Exemple #1
0
  def testCharacterIsLetter(self):
    poetry    = Poetry()
    character = "a"

    results = poetry.isLetter(character)

    self.assertEqual(True, results)
Exemple #2
0
  def testCharacterIsNotLetter(self):
    """
    The test example tests a (possible) edge case on using ASCII calculations
    to determine whether a character is a letter.
    """
    poetry    = Poetry()
    character = "["

    results = poetry.isLetter(character)

    self.assertEqual(False, results)