'Verify age limit messages for a user.'

def verify_profile_forced_private_message(self, username, birth_year, message=None):

    if (birth_year is None):
        birth_year = ''
    self.set_birth_year(birth_year=birth_year)
    profile_page = self.visit_profile_page(username)
    self.assertTrue(profile_page.privacy_field_visible)
    if message:
        self.assertTrue(profile_page.age_limit_message_present)
    else:
        self.assertFalse(profile_page.age_limit_message_present)
    self.assertIn(message, profile_page.profile_forced_private_message)
