'Verifies that a user message returns the correct CSS and icon classes.'

@ddt.data((UserMessageType.ERROR, 'alert-danger', 'fa    fa-warning'), (UserMessageType.INFO, 'alert-info', 'fa    fa-bullhorn'), (UserMessageType.SUCCESS, 'alert-success', 'fa    fa-check-circle'), (UserMessageType.WARNING, 'alert-warning', 'fa    fa-warning'))
@ddt.unpack
def test_message_icon(self, message_type, expected_css_class, expected_icon_class):

    PageLevelMessages.register_user_message(self.request, message_type, TEST_MESSAGE)
    messages = list(PageLevelMessages.user_messages(self.request))
    self.assertEqual(len(messages), 1)
    self.assertEquals(messages[0].css_class, expected_css_class)
    self.assertEquals(messages[0].icon_class, expected_icon_class)
