def test_another_bday_same_mmdd_diff_year_print_msg(bd, capfd): # if same day and month, but different year = match bd['mike'] = date(1981, 7, 15) # same as tim, except year output = capfd.readouterr()[0].strip() assert output == MSG.format('mike')
def test_another_bday_same_yymmdd_print_msg(bd, capfd): bd['mary'] = date(1987, 6, 15) output = capfd.readouterr()[0].strip() assert output == MSG.format('mary') # exactly the same as bob