def _bind_port(self, port_config, expect_success=True):
port_context = self._generate_port_context(port_config)<EOL>self.mock_set_binding = mock.patch.object(<EOL>FakePortContext,<EOL>'<STR_LIT>').start()<EOL>port_context._prepare_to_bind(port_context)<EOL>self._cisco_mech_driver.bind_port(port_context)<EOL>
Tests creation of a virtual port.