Revision 18aab5b7 mininet/test/test_nets.py

View differences:

mininet/test/test_nets.py
23 23

  
24 24
    switchClass = None # overridden in subclasses
25 25

  
26
    def tearDown( self ):
26
    @staticmethod
27
    def tearDown():
27 28
        "Clean up if necessary"
28 29
        if sys.exc_info != ( None, None, None ):
29 30
            cleanup()
......
74 75

  
75 76
    def testLinear5( self ):
76 77
        "Ping test on a 5-switch topology"
77
        mn = Mininet( LinearTopo( k=5 ), self.switchClass, Host, Controller, waitConnected=True )
78
        mn = Mininet( LinearTopo( k=5 ), self.switchClass, Host,
79
                      Controller, waitConnected=True )
78 80
        dropped = mn.run( mn.ping )
79 81
        self.assertEqual( dropped, 0 )
80 82

  

Also available in: Unified diff