Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / networkx / tests / test_exceptions.py @ 5cef0f13

History | View | Annotate | Download (802 Bytes)

1
from nose.tools import raises
2
import networkx as nx
3

    
4
# smoke tests for exceptions
5

    
6

    
7
@raises(nx.NetworkXException)
8
def test_raises_networkxexception():
9
    raise nx.NetworkXException
10

    
11

    
12
@raises(nx.NetworkXError)
13
def test_raises_networkxerr():
14
    raise nx.NetworkXError
15

    
16

    
17
@raises(nx.NetworkXPointlessConcept)
18
def test_raises_networkx_pointless_concept():
19
    raise nx.NetworkXPointlessConcept
20

    
21

    
22
@raises(nx.NetworkXAlgorithmError)
23
def test_raises_networkxalgorithmerr():
24
    raise nx.NetworkXAlgorithmError
25

    
26

    
27
@raises(nx.NetworkXUnfeasible)
28
def test_raises_networkx_unfeasible():
29
    raise nx.NetworkXUnfeasible
30

    
31

    
32
@raises(nx.NetworkXNoPath)
33
def test_raises_networkx_no_path():
34
    raise nx.NetworkXNoPath
35

    
36

    
37
@raises(nx.NetworkXUnbounded)
38
def test_raises_networkx_unbounded():
39
    raise nx.NetworkXUnbounded