'Check that handle_ajax works properly if the source is really an ErrorModule,
and that the condition is not satisfied.'

def test_error_as_source(self):

    modules = ConditionalFactory.create(self.test_system, source_is_error_module=True)
    modules['cond_module'].save()
    ajax = json.loads(modules['cond_module'].handle_ajax('', ''))
    html = ajax['html']
    self.assertFalse(any([('This    is    a    secret' in item) for item in html]))
