Minor code cleanup

This commit is contained in:
Bob Lantz
2014-11-23 17:17:21 -08:00
parent 37bdf14b49
commit e0bf8ece3c
14 changed files with 8 additions and 194 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class testSwitchDpidAssignmentCommon ( object ):
name of the switch does not contin a digit. Also verify the
exception message."""
with self.assertRaises( Exception ) as raises_cm:
switch = Mininet( Topo(), self.switchClass, Host, Controller ).addSwitch( 'A' )
Mininet( Topo(), self.switchClass, Host, Controller ).addSwitch( 'A' )
self.assertEqual(raises_cm.exception.message, 'Unable to derive '
'default datapath ID - please either specify a dpid '
'or use a canonical switch name such as s23.')