def test_date_of_birth_on_leap_day(self):
        """
        Freeze the date to a leap day to verify that the date_of_birth method  does not
        raise an error
        """
        dob = self.fake.date_of_birth()
        assert isinstance(dob, date)

        Freeze the date to a leap day to verify that the date_of_birth method  does not
        raise an error
        
tests/providers/test_date_time.py