def METHOD_NAME(test, obj, expect):
    contents = test.read(test.workpath('work1', obj))
    line1 = contents.split(b'\n')[0]
    actual = b' '.join(line1.split())
    if not expect == actual:
        print("%s:  %s != %s\n" % (obj, repr(expect), repr(actual)))
        test.fail_test()