'Tests to make sure tasks are added and run'

@mock.patch.object(QuestionMappingType, 'index')
def test_tasks(self, index_fun):

    q = QuestionFactory()
    eq_(index_fun.call_count, 0)
    q.save()
    generate_tasks()
    eq_(index_fun.call_count, 1)
