Fix typo in test_switchdpidassignment.py (#1195)
* Fix typo in test_switchdpidassignment.py * Fix another typo in test_switchdpidassignment.py
This commit is contained in:
@@ -51,7 +51,7 @@ class TestSwitchDpidAssignmentOVS( unittest.TestCase ):
|
|||||||
|
|
||||||
def testDefaultDpidAssignmentFailure( self ):
|
def testDefaultDpidAssignmentFailure( self ):
|
||||||
"""Verify that Default dpid assignment raises an Exception if the
|
"""Verify that Default dpid assignment raises an Exception if the
|
||||||
name of the switch does not contin a digit. Also verify the
|
name of the switch does not contain a digit. Also verify the
|
||||||
exception message."""
|
exception message."""
|
||||||
net = Mininet( Topo(), self.switchClass, Host, Controller )
|
net = Mininet( Topo(), self.switchClass, Host, Controller )
|
||||||
with self.assertRaises( Exception ) as raises_cm:
|
with self.assertRaises( Exception ) as raises_cm:
|
||||||
@@ -80,7 +80,7 @@ class OVSUser( OVSSwitch):
|
|||||||
OVSSwitch.__init__( self, *args, **kwargs )
|
OVSSwitch.__init__( self, *args, **kwargs )
|
||||||
|
|
||||||
class testSwitchOVSUser( TestSwitchDpidAssignmentOVS ):
|
class testSwitchOVSUser( TestSwitchDpidAssignmentOVS ):
|
||||||
"Test dpid assignnment of OVS User Switch."
|
"Test dpid assignment of OVS User Switch."
|
||||||
switchClass = OVSUser
|
switchClass = OVSUser
|
||||||
|
|
||||||
@unittest.skipUnless( quietRun( 'which ivs-ctl' ),
|
@unittest.skipUnless( quietRun( 'which ivs-ctl' ),
|
||||||
|
|||||||
Reference in New Issue
Block a user