Back to index

python-cliapp  1.20120630
Public Member Functions | Public Attributes
cliapp.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 98 of file pluginmgr_tests.py.


Member Function Documentation

Definition at line 100 of file pluginmgr_tests.py.

00100 
00101     def setUp(self):
00102         self.pm = PluginManager()
00103         self.pm.application_version = '1.2.3'
        

Definition at line 113 of file pluginmgr_tests.py.

00113 
00114     def test_accepts_one(self):
00115         self.assert_(self.pm.compatible_version('1'))
        

Definition at line 116 of file pluginmgr_tests.py.

00116 
00117     def test_accepts_one_two_three(self):
00118         self.assert_(self.pm.compatible_version('1.2.3'))
00119 

Definition at line 110 of file pluginmgr_tests.py.

00110 
00111     def test_rejects_one_two_four(self):
00112         self.assertFalse(self.pm.compatible_version('1.2.4'))
        

Definition at line 107 of file pluginmgr_tests.py.

00107 
00108     def test_rejects_two(self):
00109         self.assertFalse(self.pm.compatible_version('2'))
        

Definition at line 104 of file pluginmgr_tests.py.

00104 
00105     def test_rejects_zero(self):
00106         self.assertFalse(self.pm.compatible_version('0'))
        

Member Data Documentation

Definition at line 101 of file pluginmgr_tests.py.


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