def METHOD_NAME(expected, args, sep=NotDefined, end=NotDefined):
    # Run the test 2 ways: not using file, and using
    # file directed to a StringIO.
    self.check(expected, args, sep=sep, end=end)
    # When writing to a file, stdout is expected to be empty
    o = StringIO()
    self.check('', args, sep=sep, end=end, file=o)
    # And o will contain the expected output
    self.assertEqual(o.getvalue(), expected)