Example #1
0
 def test_with_random_string(self):
     observed = ovsdb_handler.is_trunk_service_port('foo')
     self.assertFalse(observed)
Example #2
0
 def test_with_subport_patch_port_int_side(self):
     observed = ovsdb_handler.is_trunk_service_port('spi-foo')
     self.assertTrue(observed)
Example #3
0
 def test_with_trunk_patch_port_trunk_side(self):
     observed = ovsdb_handler.is_trunk_service_port('tpt-foo')
     self.assertTrue(observed)
Example #4
0
 def test_with_bridge_name(self):
     observed = ovsdb_handler.is_trunk_service_port('tbr-foo')
     self.assertTrue(observed)
Example #5
0
 def test_with_random_string(self):
     observed = ovsdb_handler.is_trunk_service_port('foo')
     self.assertFalse(observed)
Example #6
0
 def test_with_trunk_patch_port_trunk_side(self):
     observed = ovsdb_handler.is_trunk_service_port('tpt-foo')
     self.assertTrue(observed)
Example #7
0
 def test_with_subport_patch_port_int_side(self):
     observed = ovsdb_handler.is_trunk_service_port('spi-foo')
     self.assertTrue(observed)
Example #8
0
 def test_with_bridge_name(self):
     observed = ovsdb_handler.is_trunk_service_port('tbr-foo')
     self.assertTrue(observed)