Back to index

python-cliapp  1.20120630
Public Member Functions | Public Attributes
cliapp.app_tests.ExtensibleSubcommandTests Class Reference

List of all members.

Public Member Functions

def setUp
def test_lists_no_subcommands
def test_adds_subcommand

Public Attributes

 app

Detailed Description

Definition at line 307 of file app_tests.py.


Member Function Documentation

Definition at line 309 of file app_tests.py.

00309 
00310     def setUp(self):
00311         self.app = cliapp.Application()
    

Definition at line 315 of file app_tests.py.

00315 
00316     def test_adds_subcommand(self):
00317         help = lambda args: None
00318         self.app.add_subcommand('help', help)
00319         self.assertEqual(self.app.subcommands, {'help': help})
00320 

Definition at line 312 of file app_tests.py.

00312 
00313     def test_lists_no_subcommands(self):
00314         self.assertEqual(self.app.subcommands, {})
        

Member Data Documentation

Definition at line 310 of file app_tests.py.


The documentation for this class was generated from the following file: