'Asserts that the validation message has all expected content.
Args:
validation (StudioValidation): A validation object.
expected_msg (string): An expected validation message.'

def assert_validation_message(self, validation, expected_msg):

    self.assertFalse(validation.empty)
    self.assertTrue(validation.summary)
    self.assertEqual(StudioValidationMessage.WARNING, validation.summary.type)
    self.assertIn(expected_msg, validation.summary.text)
