kyu_7.disemvowel_trolls package
Submodules
kyu_7.disemvowel_trolls.disemvowel_trolls module
Solution for -> ‘Disemvowel’ Trolls.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_7.disemvowel_trolls.disemvowel_trolls.disemvowel(string: str) str[source]
‘disemvowel’ function.
A function that takes a string and return a new string with all vowels removed.
For example, the string “This website is for losers LOL!” would become “Ths wbst s fr lsrs LL!”.
Note: for this kata y isn’t considered a vowel. :param string: :return:
kyu_7.disemvowel_trolls.test_disemvowel_trolls module
Test for -> ‘Disemvowel’ Trolls.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_7.disemvowel_trolls.test_disemvowel_trolls.DisemvowelTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting ‘disemvowel’ function.
- _classSetupFailed = False
- _class_cleanups = []
- test_disemvowel = None
- test_disemvowel_0_This_website_is_for_losers_LOL_(**kw)
Testing ‘disemvowel’ function with various test data [with input_data=’This website is for losers LOL!’, expected=’Ths wbst s fr lsrs LL!’].
The string “This website is for losers LOL!” should become “Ths wbst s fr lsrs LL!”. :return:
- test_disemvowel_1_No_offense_but_Your_writing_is_among_the_worst_I_ve_ever_read(**kw)
Testing ‘disemvowel’ function with various test data [with input_data=”No offense but, Your writing is among the worst I’ve ever read”, expected=”N ffns bt, Yr wrtng s mng th wrst ‘v vr rd”].
The string “This website is for losers LOL!” should become “Ths wbst s fr lsrs LL!”. :return:
- test_disemvowel_2_What_are_you_a_communist_(**kw)
Testing ‘disemvowel’ function with various test data [with input_data=’What are you, a communist?’, expected=’Wht r y, cmmnst?’].
The string “This website is for losers LOL!” should become “Ths wbst s fr lsrs LL!”. :return:
- test_disemvowel_3_IeiIvp_EIfgoIh_d_kaM_A_EuiGzEooOoW_oK_f_uswtee_pKAUI_ZuuEi_g_aIAOU__Lu(**kw)
Testing ‘disemvowel’ function with various test data [with input_data=’IeiIvp EIfgoIh,d(kaM]A>EuiGzEoo…swtee pKAUI<ZuuEi\g)aIAOU !_Lu’, expected=’vp fgh,d(kM]>GzW K f&swt pK<Z\g) !_L’].
The string “This website is for losers LOL!” should become “Ths wbst s fr lsrs LL!”. :return:
- test_disemvowel_4_Nt_I_OvegOI_UdAaEobaE_Gi_I_Ieua_uU_d_AoUII_ue_IkEI_GqrjOal_E_eeAeSuaTdAu_FISac(**kw)
Testing ‘disemvowel’ function with various test data [with input_data=’Nt/I'OvegOI*UdAaEobaE{Gi} I^@*…EI GqrjOal`E” eeAeSuaTdAu-FISac’, expected=’Nt/'vg*db{G} ^@*\}d%}>*]k Gqrjl`” STd-FSc’].
The string “This website is for losers LOL!” should become “Ths wbst s fr lsrs LL!”. :return:
Module contents
‘Disemvowel’ Trolls.