

def test_push_status_message_no_response(self):
    status_message = 'This is a message'
    statuses = ['info', 'warning', 'warn', 'success', 'danger', 'default']
    for status in statuses:
        try:
            push_status_message(status_message, kind=status)
        except:
            assert_true(False, 'Exception from push_status_message via API v2 with type "{}".'.format(status))

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/base/test_utils.py FlaskDjangoIntegrationTestCase.test_push_status_message_no_response/original