Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.pluginmgr_tests.PluginManagerCompatibleApplicationVersionTests Class Reference

List of all members.

Public Member Functions

def setUp
def test_rejects_zero
def test_rejects_two
def test_rejects_one_two_four
def test_accepts_one
def test_accepts_one_two_three

Public Attributes

 pm

Detailed Description

Definition at line 131 of file pluginmgr_tests.py.


Member Function Documentation

Definition at line 133 of file pluginmgr_tests.py.

00133 
00134     def setUp(self):
00135         self.pm = PluginManager()
00136         self.pm.application_version = '1.2.3'
        

Definition at line 146 of file pluginmgr_tests.py.

00146 
00147     def test_accepts_one(self):
00148         self.assert_(self.pm.compatible_version('1'))
        

Definition at line 149 of file pluginmgr_tests.py.

00149 
00150     def test_accepts_one_two_three(self):
00151         self.assert_(self.pm.compatible_version('1.2.3'))
00152 

Definition at line 143 of file pluginmgr_tests.py.

00143 
00144     def test_rejects_one_two_four(self):
00145         self.assertFalse(self.pm.compatible_version('1.2.4'))
        

Definition at line 140 of file pluginmgr_tests.py.

00140 
00141     def test_rejects_two(self):
00142         self.assertFalse(self.pm.compatible_version('2'))
        

Definition at line 137 of file pluginmgr_tests.py.

00137 
00138     def test_rejects_zero(self):
00139         self.assertFalse(self.pm.compatible_version('0'))
        

Member Data Documentation

Definition at line 134 of file pluginmgr_tests.py.


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