comparison failed
authorgwen <gremond@cadoles.com>
Mon, 3 Dec 2012 14:48:04 +0000 (15:48 +0100)
committergwen <gremond@cadoles.com>
Mon, 3 Dec 2012 14:48:04 +0000 (15:48 +0100)
test/test_option_setting.py
tiramisu/config.py

index f7a8903..eb5fa44 100644 (file)
@@ -308,7 +308,7 @@ def test_set_with_unknown_option():
 
 def test_set_symlink_option():
     boolopt = BoolOption("b", "", default=False)
-    linkopt = SymLinkOption("c", "s1.b")
+    linkopt = SymLinkOption("c", "s1.b", opt=boolopt)
     descr = OptionDescription("opt", "",
                               [linkopt, OptionDescription("s1", "", [boolopt])])
     config = Config(descr)
index eb60364..5331c1e 100644 (file)
@@ -375,8 +375,10 @@ class Config(object):
 
     def __eq__(self, other):
         "Config comparison"
-        if not isinstance(other, OptionDescription):
+        if not isinstance(other, Config):
             return False
+        print self.getkey()
+        print other.getkey()
         return self.getkey() == other.getkey()
 
     def __ne__(self, other):