- @mock.patch.object(Client, 'create_port_chain')
- def test_new_sfp_without_sfc_encap(self, create_port_chain):
- self.assertRaises(vimconn.vimconnNotSupportedException,
- self._test_new_sfp,
- create_port_chain, False, None)
- self.assertRaises(vimconn.vimconnNotSupportedException,
- self._test_new_sfp,
- create_port_chain, False, 25)
+ @mock.patch.object(Client, 'create_sfc_port_chain')
+ def test_new_sfp_without_sfc_encap(self, create_sfc_port_chain):
+ self._test_new_sfp(create_sfc_port_chain, False, None)
+ self._test_new_sfp(create_sfc_port_chain, False, 25)