def test_vowels_bad_upper(self): '''Tests if starts_with_vowel on upper case non-vowel words.''' word = "Bad ant" val = starts_with_vowel(word) self.assertFalse(val) word = "Nice igloo" val = starts_with_vowel(word) self.assertFalse(val) word = "Kind elephant" val = starts_with_vowel(word) self.assertFalse(val) word = "Just other" val = starts_with_vowel(word) self.assertFalse(val)
def test_vowels_bad(self): '''Tests if starts_with_vowel on lower case non-vowel words.''' word = "bad ant" val = starts_with_vowel(word) self.assertFalse(val) word = "nice igloo" val = starts_with_vowel(word) self.assertFalse(val) word = "kind elephant" val = starts_with_vowel(word) self.assertFalse(val) word = "just other" val = starts_with_vowel(word) self.assertFalse(val)
def test_vowels_good_upper(self): '''Tests if starts_with_vowel on upper case vowel words.''' word = "Ant" val = starts_with_vowel(word) self.assertTrue(val) word = "Igloo" val = starts_with_vowel(word) self.assertTrue(val) word = "Elephant" val = starts_with_vowel(word) self.assertTrue(val) word = "Other" val = starts_with_vowel(word) self.assertTrue(val)
def test_vowels_good(self): '''Tests if starts_with_vowel on lower case vowel words.''' word = "ant" val = starts_with_vowel(word) self.assertTrue(val) word = "igloo" val = starts_with_vowel(word) self.assertTrue(val) word = "elephant" val = starts_with_vowel(word) self.assertTrue(val) word = "other" val = starts_with_vowel(word) self.assertTrue(val)