~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to tests/TestModules.py

  • Committer: Fabrice Rey
  • Date: 2013-06-28 23:44:28 UTC
  • Revision ID: fabounet03@gmail.com-20130628234428-cwsvh6mexcfm0063
Added a test framework, and several tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from Test import Test, key, set_param
 
2
from CairoDock import CairoDock
 
3
 
 
4
# Test Modules
 
5
class TestModules(Test):
 
6
        def __init__(self, dock):
 
7
                Test.__init__(self, "Test modules", dock)
 
8
        
 
9
        def run(self):
 
10
                instances = self.d.GetProperties('type=Module-Instance')
 
11
                
 
12
                for mi in instances:
 
13
                        print ("  Reload %s (%s)..." % (mi['name'], mi['config-file']))
 
14
                        self.d.Reload('config-file='+mi['config-file'])
 
15
                
 
16
                self.end()