@@ -11,19 +11,24 @@ class TimeVaryingHypergraphTest(unittest.TestCase):
1111 def test_vertices (self ):
1212 for hedge , vertices in TimeVaryingHypergraphTest .hyperedges .items ():
1313 with self .subTest (hyperedge = hedge ):
14- self .assertEqual (TimeVaryingHypergraphTest .hypergraph .vertices (hedge ), set (vertices ))
14+ self .assertEqual (
15+ TimeVaryingHypergraphTest .hypergraph .vertices (hedge ), set (vertices ))
1516
1617 def test_hyperedges (self ):
17- self .assertEqual (TimeVaryingHypergraphTest .hypergraph .hyperedges ('v1' ), {'h1' })
18+ self .assertEqual (
19+ TimeVaryingHypergraphTest .hypergraph .hyperedges ('v1' ), {'h1' })
1820
1921 def test_timings (self ):
20- self .assertEqual (TimeVaryingHypergraphTest .hypergraph .timings (), TimeVaryingHypergraphTest .timings )
22+ self .assertEqual (TimeVaryingHypergraphTest .hypergraph .timings (
23+ ), TimeVaryingHypergraphTest .timings )
2124
2225 def test_unknown_vertex (self ):
23- self .assertRaises (EntityNotFound , TimeVaryingHypergraphTest .hypergraph .vertices , 'vx' )
26+ self .assertRaises (
27+ EntityNotFound , TimeVaryingHypergraphTest .hypergraph .vertices , 'vx' )
2428
2529 def test_unknown_hyperedge (self ):
26- self .assertRaises (EntityNotFound , TimeVaryingHypergraphTest .hypergraph .hyperedges , 'hx' )
30+ self .assertRaises (
31+ EntityNotFound , TimeVaryingHypergraphTest .hypergraph .hyperedges , 'hx' )
2732
2833
2934class CommunicationNetworkTest (unittest .TestCase ):
@@ -34,23 +39,28 @@ class CommunicationNetworkTest(unittest.TestCase):
3439 def test_pairwise_vertex_participant_equivalence (self ):
3540 for hedge in list (CommunicationNetworkTest .hyperedges ):
3641 with self .subTest (hyperedge = hedge ):
37- self .assertEqual (CommunicationNetworkTest .communication_network .vertices (hedge ), CommunicationNetworkTest .communication_network .participants (hedge ))
42+ self .assertEqual (CommunicationNetworkTest .communication_network .vertices (
43+ hedge ), CommunicationNetworkTest .communication_network .participants (hedge ))
3844
3945 def test_vertex_participant_equivalence (self ):
40- self .assertEqual (CommunicationNetworkTest .communication_network .vertices (), CommunicationNetworkTest .communication_network .participants ())
46+ self .assertEqual (CommunicationNetworkTest .communication_network .vertices (
47+ ), CommunicationNetworkTest .communication_network .participants ())
4148
4249 def test_pairwise_hyperedge_channel_equivalence (self ):
4350 for vertex in {v for vertices in CommunicationNetworkTest .hyperedges .values () for v in vertices }:
4451 with self .subTest (hyperedge = vertex ):
45- self .assertEqual (CommunicationNetworkTest .communication_network .hyperedges (vertex ), CommunicationNetworkTest .communication_network .channels (vertex ))
52+ self .assertEqual (CommunicationNetworkTest .communication_network .hyperedges (
53+ vertex ), CommunicationNetworkTest .communication_network .channels (vertex ))
4654
4755 def test_hyperedge_channel_equivalence (self ):
48- self .assertEqual (CommunicationNetworkTest .communication_network .hyperedges (), CommunicationNetworkTest .communication_network .channels ())
56+ self .assertEqual (CommunicationNetworkTest .communication_network .hyperedges (
57+ ), CommunicationNetworkTest .communication_network .channels ())
4958
5059
5160class ParametrizedCommunicationNetworkTest (unittest .TestCase ):
5261 def test_with_paramtrization (self ):
53- communciation_network = CommunicationNetwork .from_json ('./data/networks/microsoft.json.bz2' )
62+ communciation_network = CommunicationNetwork .from_json (
63+ './data/networks/microsoft.json.bz2' )
5464 with self .subTest ():
5565 self .assertEqual (len (communciation_network .participants ()), 37103 )
5666 with self .subTest ():
0 commit comments