Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.pluginmgr_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 22 of file pluginmgr_tests.py.


Member Function Documentation

Definition at line 24 of file pluginmgr_tests.py.

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

Definition at line 30 of file pluginmgr_tests.py.

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

Definition at line 42 of file pluginmgr_tests.py.

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

Definition at line 50 of file pluginmgr_tests.py.

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

Definition at line 39 of file pluginmgr_tests.py.

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

Definition at line 45 of file pluginmgr_tests.py.

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

Definition at line 27 of file pluginmgr_tests.py.

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

Definition at line 36 of file pluginmgr_tests.py.

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

Definition at line 33 of file pluginmgr_tests.py.

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


Member Data Documentation

Definition at line 25 of file pluginmgr_tests.py.


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