from solution import slugify CASES = [ (('Hello World',), 'hello-world'), ] failed = 0 for args, want in CASES: got = slugify(*args) status = 'ok' if got == want else 'FAIL' failed += status == 'FAIL' print(status, 'slugify', args, '->', repr(got), '(expected', repr(want) + ')') print('passed', len(CASES) - failed, 'of', len(CASES))