Added a test for when we just want to wrap a command but don't need to get

any arguments from the user.
This commit is contained in:
James Vega 2004-10-15 11:13:53 +00:00
parent e3d40ba5f1
commit ec75306a37

View File

@ -47,6 +47,9 @@ class CommandsTestCase(SupyTestCase):
self.assertEqual(state.args, expected,
'Expected %r, got %r' % (expected, state.args))
def testEmptySpec(self):
self.assertState([], [], [])
def testSpecInt(self):
self.assertState(['int'], ['1'], [1])
self.assertState(['int', 'int', 'int'], ['1', '2', '3'], [1, 2, 3])