<s> import unittest <EOL> from codalab . lib import cli_util <EOL> from codalab . common import UsageError <EOL> class CLIUtilTest ( unittest . TestCase ) : <EOL> def test_desugar ( self ) : <EOL> self . assertEqual ( cli_util . desugar_command ( [ ] , '<STR_LIT>' ) , ( [ ] , '<STR_LIT>' ) ) <EOL> self . assertEqual ( cli_util . desugar_command ( [ '<STR_LIT>' ] , '<STR_LIT>' ) , ( [ '<STR_LIT>' , '<STR_LIT>' ] , '<STR_LIT>' ) ) <EOL> self . assertEqual ( cli_util . desugar_command ( [ '<STR_LIT>' ] , '<STR_LIT>' ) , ( [ '<STR_LIT>' , '<STR_LIT>' ] , '<STR_LIT>' ) ) <EOL> self . assertEqual ( cli_util . desugar_command ( [ '<STR_LIT>' ] , '<STR_LIT>' ) , ( [ '<STR_LIT>' , '<STR_LIT>' ] , '<STR_LIT>' ) ) <EOL> self . assertEqual ( cli_util . desugar_command ( [ '<STR_LIT>' ] , '<STR_LIT>' ) , ( [ '<STR_LIT>' ] , '<STR_LIT>' ) ) <EOL> self . assertEqual ( cli_util . desugar_command ( [ ] , '<STR_LIT>' ) , ( [ '<STR_LIT>' ] , '<STR_LIT>' ) ) <EOL> self . assertRaises ( UsageError , lambda : cli_util . desugar_command ( [ ] , '<STR_LIT>' ) ) <EOL> self . assertRaises ( UsageError , lambda : cli_util . desugar_command ( [ '<STR_LIT>' ] , '<STR_LIT>' ) ) </s>
