def func_ten(calc_cleaned): calc_cleaned = calc_cleaned.lower() len_bool_value = check_len_what_calc(calc_cleaned) while len_bool_value == False: print("I'm sorry, but you have entered a non-legitimate \ calculation type. Please try again." + '\n') calc_cleaned = func_nine() calc_cleaned = func_nine_a(calc_cleaned) calc_cleaned = calc_cleaned.lower() len_bool_value = check_len_what_calc(calc_cleaned) continue return calc_cleaned return calc_cleaned
def test_three(self): self.assertFalse(check_len_what_calc('sddfsdf'))
def test_two(self): self.assertFalse(check_len_what_calc(''))
def test_one(self): self.assertTrue(check_len_what_calc('g'))