'Verify that the validation message has the expected validation message and type.'

def verify_validation_message(self, message, expected_message, expected_message_type):

    self.assertEqual(message.text, expected_message)
    self.assertEqual(message.type, expected_message_type)
