'tests if error is returned correctly.
Needed after task was run through celery'

def test_import_validation_error(self):

    with app.test_request_context():
        speaker = Speaker(name='SP', email='invalid_email', organisation='org', country='japan', event_id=1)
        save_to_db(speaker, 'speaker    invalid    saved')
    self._test_import_error(checks=['Invalid', 'email', '400'])
