def test_year_first_with_separators(self):
        test_date = '1983-05-02'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 2
        assert dob_month == 5
        assert dob_year == 1983
    def test_short_year_year_first(self):
        test_date = '20020520'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 20
        assert dob_month == 5
        assert dob_year == 2002
    def test_recent_day_first_no_separators(self):
        test_date = '20122013'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 20
        assert dob_month == 12
        assert dob_year == 2013
    def test_undefined(self):
        test_date = None
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == ''
        assert dob_month == ''
        assert dob_year == ''
    def test_empty_string(self):
        test_date = ''
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == ''
        assert dob_month == ''
        assert dob_year == ''
    def test_day_less_than_13(self):
        test_date = '2021-06-08 00:00:00'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 8
        assert dob_month == 6
        assert dob_year == 2021
    def test_has_time(self):
        test_date = '1950-02-27 00:00:00'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 27
        assert dob_month == 2
        assert dob_year == 1950
    def test_day_first_with_separators(self):
        test_date = '1989-11-10'
        dob_day, dob_month, dob_year = parse_date_of_birth(test_date)

        assert dob_day == 10
        assert dob_month == 11
        assert dob_year == 1989
    def test_a_range_of_date_values(self):
        dob_day, dob_month, dob_year = parse_date_of_birth('2/6/2021')

        assert dob_day == 2
        assert dob_month == 6
        assert dob_year == 2021

        dob_day, dob_month, dob_year = parse_date_of_birth('12/6/2021')

        assert dob_day == 12
        assert dob_month == 6
        assert dob_year == 2021

        dob_day, dob_month, dob_year = parse_date_of_birth('13/12/2021')

        assert dob_day == 13
        assert dob_month == 12
        assert dob_year == 2021

        dob_day, dob_month, dob_year = parse_date_of_birth('13/3/2033')

        assert dob_day == 13
        assert dob_month == 3
        assert dob_year == 2033

        dob_day, dob_month, dob_year = parse_date_of_birth('7-3-2033')

        assert dob_day == 7
        assert dob_month == 3
        assert dob_year == 2033

        dob_day, dob_month, dob_year = parse_date_of_birth('1989-3-1')

        assert dob_day == 1
        assert dob_month == 3
        assert dob_year == 1989

        dob_day, dob_month, dob_year = parse_date_of_birth('1913-1-13')

        assert dob_day == 13
        assert dob_month == 1
        assert dob_year == 1913
    def test_single_month_and_day_values(self):
        dob_day, dob_month, dob_year = parse_date_of_birth('2/6/2021')

        assert dob_day == 2
        assert dob_month == 6
        assert dob_year == 2021
    def test_single_digit_month_values(self):
        dob_day, dob_month, dob_year = parse_date_of_birth('25/6/2021')

        assert dob_day == 25
        assert dob_month == 6
        assert dob_year == 2021
    def test_day_first_with_slash_separators(self):
        dob_day, dob_month, dob_year = parse_date_of_birth('03/10/1989')

        assert dob_day == 3
        assert dob_month == 10
        assert dob_year == 1989