python: fix bindings for scc_filter as a method

* wrap/python/spot.py: Fix bindings for scc_filter.
* wrap/python/tests/remfin.py: Test them.
This commit is contained in:
Alexandre Duret-Lutz 2015-10-20 14:52:25 +02:00
parent c7d063aaa0
commit 0f3bc27d7b
2 changed files with 14 additions and 7 deletions

View file

@ -20,8 +20,8 @@ State: 2
""")
aut.prop_inherently_weak()
aut = spot.dtwa_complement(aut)
aut = spot.scc_filter_states(aut)
assert(aut.to_str('hoa') == """HOA: v1
aut1 = spot.scc_filter_states(aut)
assert(aut1.to_str('hoa') == """HOA: v1
States: 2
Start: 0
AP: 1 "a"
@ -36,6 +36,8 @@ State: 1
[t] 1
--END--""")
assert(aut.get_name() == None)
aut.set_name("test me")
assert(aut.get_name() == "test me")
assert(aut.scc_filter_states().to_str() == aut1.to_str())
assert(aut1.get_name() == None)
aut1.set_name("test me")
assert(aut1.get_name() == "test me")
# The method is the same as the function