comparison failed
This commit is contained in:
parent
2dfc906966
commit
d633574cc5
@ -308,7 +308,7 @@ def test_set_with_unknown_option():
|
|||||||
|
|
||||||
def test_set_symlink_option():
|
def test_set_symlink_option():
|
||||||
boolopt = BoolOption("b", "", default=False)
|
boolopt = BoolOption("b", "", default=False)
|
||||||
linkopt = SymLinkOption("c", "s1.b")
|
linkopt = SymLinkOption("c", "s1.b", opt=boolopt)
|
||||||
descr = OptionDescription("opt", "",
|
descr = OptionDescription("opt", "",
|
||||||
[linkopt, OptionDescription("s1", "", [boolopt])])
|
[linkopt, OptionDescription("s1", "", [boolopt])])
|
||||||
config = Config(descr)
|
config = Config(descr)
|
||||||
|
@ -375,8 +375,10 @@ class Config(object):
|
|||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
"Config comparison"
|
"Config comparison"
|
||||||
if not isinstance(other, OptionDescription):
|
if not isinstance(other, Config):
|
||||||
return False
|
return False
|
||||||
|
print self.getkey()
|
||||||
|
print other.getkey()
|
||||||
return self.getkey() == other.getkey()
|
return self.getkey() == other.getkey()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
|
Loading…
Reference in New Issue
Block a user