Back to index

python-cliapp  1.20120630
Public Member Functions | Public Attributes
cliapp.plugin_tests.PluginTests Class Reference

List of all members.

Public Member Functions

def setUp
def test_name_is_class_name
def test_description_is_empty_string
def test_version_is_zeroes
def test_required_application_version_is_zeroes
def test_enable_raises_exception
def test_disable_raises_exception
def test_enable_wrapper_calls_enable
def test_disable_wrapper_calls_disable

Public Attributes

 plugin

Detailed Description

Definition at line 23 of file plugin_tests.py.


Member Function Documentation

Definition at line 25 of file plugin_tests.py.

00025 
00026     def setUp(self):
00027         self.plugin = Plugin()
        

Definition at line 31 of file plugin_tests.py.

00031 
00032     def test_description_is_empty_string(self):
00033         self.assertEqual(self.plugin.description, '')

Definition at line 43 of file plugin_tests.py.

00043 
00044     def test_disable_raises_exception(self):
00045         self.assertRaises(Exception, self.plugin.disable)

Definition at line 51 of file plugin_tests.py.

00051 
00052     def test_disable_wrapper_calls_disable(self):
00053         self.plugin.disable = lambda: setattr(self, 'disabled', True)
00054         self.plugin.disable_wrapper()
00055         self.assert_(self.disabled, True)
00056 

Definition at line 40 of file plugin_tests.py.

00040 
00041     def test_enable_raises_exception(self):
00042         self.assertRaises(Exception, self.plugin.enable)

Definition at line 46 of file plugin_tests.py.

00046 
00047     def test_enable_wrapper_calls_enable(self):
00048         self.plugin.enable = lambda: setattr(self, 'enabled', True)
00049         self.plugin.enable_wrapper()
00050         self.assert_(self.enabled, True)

Definition at line 28 of file plugin_tests.py.

00028 
00029     def test_name_is_class_name(self):
00030         self.assertEqual(self.plugin.name, 'Plugin')

Definition at line 37 of file plugin_tests.py.

00037 
00038     def test_required_application_version_is_zeroes(self):
00039         self.assertEqual(self.plugin.required_application_version, '0.0.0')

Definition at line 34 of file plugin_tests.py.

00034 
00035     def test_version_is_zeroes(self):
00036         self.assertEqual(self.plugin.version, '0.0.0')


Member Data Documentation

Definition at line 26 of file plugin_tests.py.


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