spot/tests/python
Alexandre Duret-Lutz 530cf7ca47 tests: replace all "assert" by unittest assertions
If the assert fails because of a comparison, it is useful that the
test suite log contains a comparison of these values.
unittest.assertEqual() and friends do that for us.

* HACKING: Add a section about Python tests.
* tests/sanity/style.test: Forbid the use of "assert" in
Python tests.
* tests/python/298.py, tests/python/341.py, tests/python/471.py,
tests/python/accparse2.py, tests/python/aiger.py,
tests/python/aliases.py, tests/python/alternating.py,
tests/python/bdddict.py, tests/python/bdditer.py,
tests/python/bugdet.py, tests/python/complement_semidet.py,
tests/python/declenv.py, tests/python/decompose_scc.py,
tests/python/det.py, tests/python/dualize.py, tests/python/ecfalse.py,
tests/python/except.py, tests/python/game.py, tests/python/gen.py,
tests/python/genem.py, tests/python/implies.py,
tests/python/intrun.py, tests/python/kripke.py,
tests/python/langmap.py, tests/python/ltl2tgba.py,
tests/python/ltlf.py, tests/python/ltlparse.py,
tests/python/ltlsimple.py, tests/python/mealy.py,
tests/python/merge.py, tests/python/mergedge.py,
tests/python/misc-ec.py, tests/python/optionmap.py,
tests/python/origstate.py, tests/python/otfcrash.py,
tests/python/parity.py, tests/python/parsetgba.py,
tests/python/pdegen.py, tests/python/prodexpt.py,
tests/python/randgen.py, tests/python/relabel.py,
tests/python/remfin.py, tests/python/removeap.py,
tests/python/rs_like.py, tests/python/satmin.py,
tests/python/sbacc.py, tests/python/sccfilter.py,
tests/python/sccinfo.py, tests/python/sccsplit.py,
tests/python/semidet.py, tests/python/setacc.py,
tests/python/setxor.py, tests/python/simplacc.py,
tests/python/simstate.py, tests/python/sonf.py, tests/python/split.py,
tests/python/streett_totgba.py, tests/python/streett_totgba2.py,
tests/python/stutter.py, tests/python/sum.py,
tests/python/synthesis.py, tests/python/toparity.py,
tests/python/toweak.py, tests/python/tra2tba.py,
tests/python/trival.py, tests/python/twagraph.py,
tests/python/zlktree.py: Replace all occurrences of "assert" by calls
to unittest.TestCase methods.
2022-03-07 09:03:21 +01:00
..
.gitignore Merge the core and python tests in the tests/ directory 2016-01-04 16:02:30 +01:00
298.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
341.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
471.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
_altscc.ipynb python: define our own SVG DisplayObject 2019-12-05 08:01:07 +01:00
_autparserr.ipynb tests: work around issue #474 2021-09-01 12:27:21 +02:00
_aux.ipynb python: upgrade notebook format to v4 2018-01-07 12:59:59 +01:00
_mealy.ipynb Renaming and clean up 2021-11-11 00:38:14 +01:00
_product_susp.ipynb twa_graph: swap the two passes of merge_edges() 2021-01-20 00:16:12 +01:00
_product_weak.ipynb product: add product_xor() and product_xnor() 2020-05-16 17:55:36 +02:00
_synthesis.ipynb hoa: add support for controllable-AP 2022-01-10 14:51:34 +01:00
_word.ipynb python: remove error recovery checks from the public notebooks 2018-01-07 16:22:46 +01:00
acc_cond.ipynb Notebooks: correct typos 2021-11-06 11:56:05 +01:00
accparse.ipynb python: more conventional __repr__ for several types 2018-11-03 07:53:26 +01:00
accparse2.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
aiger.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
alarm.py python: cleanup with autopep8 2019-07-05 21:22:29 +02:00
aliases.ipynb dot: Add option @ to support aliases 2022-02-04 14:35:46 +01:00
aliases.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
alternating.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
alternation.ipynb replace bdd_satoneset(x,y,bddtrue) loops by minterms_of(x,y) 2021-04-14 17:31:45 +02:00
atva16-fig2a.ipynb twa_graph: swap the two passes of merge_edges() 2021-01-20 00:16:12 +01:00
atva16-fig2b.ipynb dot: fix #393 2020-04-29 21:14:36 +02:00
automata-io.ipynb dot: improve output to work around GraphViz bug 2022-01-11 22:19:20 +01:00
automata.ipynb replace bdd_satoneset(x,y,bddtrue) loops by minterms_of(x,y) 2021-04-14 17:31:45 +02:00
bdddict.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
bdditer.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
bddnqueen.py python: cleanup with autopep8 2019-07-05 21:22:29 +02:00
bugdet.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
complement_semidet.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
contains.ipynb Notebooks: correct typos 2021-11-06 11:56:05 +01:00
declenv.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
decompose.ipynb Notebooks: correct typos 2021-11-06 11:56:05 +01:00
decompose_scc.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
det.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
dualize.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ecfalse.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
except.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
formulas.ipynb tl: implement suffix operator normal form 2022-03-04 17:23:58 +01:00
game.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
games.ipynb hoa: add support for controllable-AP 2022-01-10 14:51:34 +01:00
gen.ipynb dot: fix #393 2020-04-29 21:14:36 +02:00
gen.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
genem.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
highlighting.ipynb twa_graph: swap the two passes of merge_edges() 2021-01-20 00:16:12 +01:00
implies.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
interdep.py python: cleanup with autopep8 2019-07-05 21:22:29 +02:00
intrun.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ipnbdoctest.py ltsmin-pml: work around newer jupyter versions 2021-11-15 23:37:08 +01:00
kripke.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
langmap.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ltl2tgba.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ltl2tgba.test Merge the core and python tests in the tests/ directory 2016-01-04 16:02:30 +01:00
ltlf.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ltlparse.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ltlsimple.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
ltsmin-dve.ipynb dot: fix #393 2020-04-29 21:14:36 +02:00
ltsmin-pml.ipynb ltsmin-pml: work around newer jupyter versions 2021-11-15 23:37:08 +01:00
mealy.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
merge.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
mergedge.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
minato.py Merge the core and python tests in the tests/ directory 2016-01-04 16:02:30 +01:00
misc-ec.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
optionmap.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
origstate.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
otfcrash.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
parity.ipynb dot: fix #393 2020-04-29 21:14:36 +02:00
parity.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
parsetgba.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
pdegen.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
prodexpt.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
product.ipynb python: define our own SVG DisplayObject 2019-12-05 08:01:07 +01:00
randaut.ipynb python: define our own SVG DisplayObject 2019-12-05 08:01:07 +01:00
randgen.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
randltl.ipynb Notebooks: correct typos 2021-11-06 11:56:05 +01:00
relabel.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
remfin.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
removeap.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
rs_like.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
satmin.ipynb dtwasat: various fixes 2021-09-29 16:50:49 +02:00
satmin.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sbacc.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sccfilter.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sccinfo.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sccsplit.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
semidet.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
setacc.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
setxor.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
simplacc.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
simstate.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sonf.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
split.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
streett_totgba.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
streett_totgba2.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
stutter-inv.ipynb postproc: add simul-max and wdba-det-max options 2020-09-16 20:40:16 +02:00
stutter.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
sum.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
synthesis.ipynb aiger accepts splitted mealy machines 2021-12-10 12:44:36 +01:00
synthesis.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
testingaut.ipynb Notebooks: correct typos 2021-11-06 11:56:05 +01:00
toparity.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
toweak.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
tra2tba.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
trival.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
twagraph-internals.ipynb python: define our own SVG DisplayObject 2019-12-05 08:01:07 +01:00
twagraph.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00
word.ipynb * tests/python/word.ipynb: Typo. 2021-12-16 14:20:12 +01:00
zlktree.ipynb acd: add ORDER_HEURISTIC for state-based ACD-transform 2021-09-24 22:28:10 +02:00
zlktree.py tests: replace all "assert" by unittest assertions 2022-03-07 09:03:21 +01:00