diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 2f1fb922..c6c20566 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -427,36 +427,3 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore): else: raise (KeyError) -if __name__ == '__main__': - - stores = [] - stores.append (TerminatorConfValuestoreRC ()) - - try: - import gconf - stores.append (TerminatorConfValuestoreGConf ()) - except: - pass - - foo = TerminatorConfig (stores) - - ## cmsj: this is my testing ground - ## ensure that font is set in the Default gconf profile - ## set titlebars in the RC file - ## remove titletips from gconf/RC - ## do not define blimnle in any way - - # This should come from gconf (it's set by gnome-terminal) - print foo.font - - # This should come from RC - print foo.titlebars - - # This should come from defaults - print foo.titletips - - # This should raise AttributeError - #print foo.blimnle - - # http_proxy is a value that is allowed to not exist - print "final proxy: %s"%foo.http_proxy diff --git a/terminatorlib/tests.py b/terminatorlib/tests.py index cbeadfef..1372de52 100644 --- a/terminatorlib/tests.py +++ b/terminatorlib/tests.py @@ -37,3 +37,11 @@ class test_config(): assert store.type == "Base" store.values['test_key'] = 'test_value' assert store['test_key'] == 'test_value' + + def test_TerminatorConfValuestoreDefault (self): + store = self.config.TerminatorConfValuestoreDefault () + assert store.type == "Default" + assert store['extreme_tabs'] == False + assert store['titletips'] == False + assert store['enable_real_transparency'] == False # until the bug is fixed +