def test_generate_vowel(self): self.assertTrue(generate_vowel() in vowels)
def test_type(self): self.assertIsInstance(generate_vowel(), str)
def test_generate_vowel_string(self): self.assertEqual(type(generate_vowel()), str)
def test_generate_vowel_len(self): self.assertEqual(1, len(generate_vowel()))
def test_generate_vowel(self): vowel_letters = 'aeiouy' self.assertIn(dungeonsanddragons.generate_vowel(), vowel_letters)
def test_generate_vowel_is_vowel(self): for i in range(1000): self.assertTrue(generate_vowel() in "aeiouy")
def test_generate_vowel_alpha(self): dnd_vowel = dungeonsanddragons.generate_vowel() self.assertTrue(dnd_vowel.isalpha())
def test_generate_vowel_is_vowel(self): vowels = ["a", "e", "i", "o", "u", "y"] self.assertIn(dungeonsanddragons.generate_vowel(), vowels)
def test_generate_vowel_length(self): self.assertEqual(len(dungeonsanddragons.generate_vowel()), 1)
def test_generate_vowel_type(self): self.assertEqual(type(dungeonsanddragons.generate_vowel()), str)
def test_generate_vowel(self): my_vowel = dungeonsanddragons.generate_vowel() self.assertIn(my_vowel, ['a', 'e', 'i', 'o', 'u', 'y'])
def test_is_a_vowel(self): vowels = 'aeiouy' self.assertTrue(generate_vowel() in vowels)
def test_return_one_vowel(self): self.assertTrue(len(generate_vowel()) == 1)
def test_generate_vowel(self): self.assertIn(generate_vowel(), 'aeiouy')
def test_generate_vowel_random(self): random.seed(3) fixed = dungeonsanddragons.generate_vowel() self.assertEqual("e", fixed) random.seed()
def test_length(self): self.assertEqual(len(generate_vowel()), 1)
def test_generate_vowel_type(self): self.assertIsInstance(dungeonsanddragons.generate_vowel(), str)