'asserts that checks are successful or not
Assertions is a mapping of numbers to check (eg successes=5)'

def assertCheck(self, successful, **assertions):

    output = TestOutput()
    check(output)
    self.assertEqual(output.successful, successful)
    for (key, value) in assertions.items():
        self.assertEqual(getattr(output, key), value, ('%s    %s    expected,    got    %s' % (value, key, getattr(output, key))))
