def test_disemvowel(self): ptr = [ ('This website is for losers LOL!', 'Ths wbst s fr lsrs LL!'), ] for inp, exp in ptr: with self.subTest(inp=inp, exp=exp): self.assertEqual(disemvowel(string=inp), exp)
def test_three_disemvowel_carson(): """Function that ensures input of binary raises TypeError.""" from disemvowel_trolls import disemvowel try: assert disemvowel(0b1101) == TypeError except TypeError: print('Cannot take binary numbers!')
def test_four_disemvowel_carson(): """Function that ensures input of list still removes vowels.""" from disemvowel_trolls import disemvowel assert disemvowel(['eeeeeeeeeeee']) == 'eeeeeeeeeeee'
def test_two_disemvowel_carson(): """Function that checks returned string is empty.""" from disemvowel_trolls import disemvowel assert disemvowel('oeeoeeoeaaaaiiiiiii') == ''
def test_one_disemvowel_carson(): """Function that checks returned string has all vowels removed.""" from disemvowel_trolls import disemvowel assert disemvowel('Successiuoaeeeouiiiea') == 'Sccss'
def test_find_it(self): self.assertEqual(disemvowel("This website is for losers LOL!"),"Ths wbst s fr lsrs LL!")