def pump(self):
        work, self.work = self.work, []
        for unit in work:
            if not unit.cancelled:
                unit.func()
Fail the test unless the text matches the regular expression.
dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/FakeScheduler.pump--crossover with--dataset/ETHPy150Open JetBrains/python-skeletons/nose/tools/__init__.py/assert_regexp_matches