def TestUnicodeCommandLines(): del printed[:] self._the_state = NewStateInstance() try: self._Exec(u'ls \u2014help') except appcommandsutil.InvalidUsageError: pass else: assert False try: self._Exec(u'reset --\u2014annihilate') except appcommandsutil.InvalidUsageError: pass else: assert False try: self._Exec(u'\u2014') except appcommandsutil.CmdNotFoundError: pass else: assert False TestUnicodeCommandLines() if __name__ == '__main__': unitjest.main() # TODO(chandler): A test case that proves that all UICmds correctly # return UndoableCommand iff they are mutations.
def main(): unitjest.main()