Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/networkx/tests/test_exceptions.py @ 1:56ad4e20f292 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
| author | guerler |
|---|---|
| date | Fri, 31 Jul 2020 00:32:28 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:d30785e31577 | 1:56ad4e20f292 |
|---|---|
| 1 import pytest | |
| 2 import networkx as nx | |
| 3 | |
| 4 # smoke tests for exceptions | |
| 5 | |
| 6 | |
| 7 def test_raises_networkxexception(): | |
| 8 with pytest.raises(nx.NetworkXException): | |
| 9 raise nx.NetworkXException | |
| 10 | |
| 11 | |
| 12 def test_raises_networkxerr(): | |
| 13 with pytest.raises(nx.NetworkXError): | |
| 14 raise nx.NetworkXError | |
| 15 | |
| 16 | |
| 17 def test_raises_networkx_pointless_concept(): | |
| 18 with pytest.raises(nx.NetworkXPointlessConcept): | |
| 19 raise nx.NetworkXPointlessConcept | |
| 20 | |
| 21 | |
| 22 def test_raises_networkxalgorithmerr(): | |
| 23 with pytest.raises(nx.NetworkXAlgorithmError): | |
| 24 raise nx.NetworkXAlgorithmError | |
| 25 | |
| 26 | |
| 27 def test_raises_networkx_unfeasible(): | |
| 28 with pytest.raises(nx.NetworkXUnfeasible): | |
| 29 raise nx.NetworkXUnfeasible | |
| 30 | |
| 31 | |
| 32 def test_raises_networkx_no_path(): | |
| 33 with pytest.raises(nx.NetworkXNoPath): | |
| 34 raise nx.NetworkXNoPath | |
| 35 | |
| 36 | |
| 37 def test_raises_networkx_unbounded(): | |
| 38 with pytest.raises(nx.NetworkXUnbounded): | |
| 39 raise nx.NetworkXUnbounded |
