Beispiel #1
0
 def test_setInstruction_invalid1(self):
     instruction = "blah"
     rule = OpenFlowRule()
     try:
         rule.setInstruction(instruction)
     except TypeError:
         pass
     else:
         self.fail("did not see error")
Beispiel #2
0
 def test_setInstruction_valid(self):
     instruction = instruction_GOTO_TABLE(3)
     rule = OpenFlowRule()
     rule.setInstruction(instruction)
     pass