Revision e0bf8ece mininet/test/test_switchdpidassignment.py

View differences:

mininet/test/test_switchdpidassignment.py
37 37
        name of the switch does not contin a digit. Also verify the 
38 38
        exception message."""
39 39
        with self.assertRaises( Exception ) as raises_cm:
40
            switch = Mininet( Topo(), self.switchClass, Host, Controller ).addSwitch( 'A' )
40
            Mininet( Topo(), self.switchClass, Host, Controller ).addSwitch( 'A' )
41 41
        self.assertEqual(raises_cm.exception.message, 'Unable to derive '
42 42
                         'default datapath ID - please either specify a dpid '
43 43
                         'or use a canonical switch name such as s23.')

Also available in: Unified diff