['DependencyViolation'] not raised search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/vpc/vpcs.py in test_delete_vpc_with_dependent_resources (arguments ▶)
- cgw = self.create_customer_gateway(
- constants.VPNC_TYPE_IPSEC_1, "1.1.1.1", 64514)
- vpnc = self.create_vpn_connection(
- constants.VPNC_TYPE_IPSEC_1, cgw.id, self.vgw_id(vpc.id),
- tunnel_options=[{"PreSharedKey": "qwerty12345"}])
- self.assert_error("DependencyViolation", self.vpcconn.delete_vpc, vpc.id)
- self.assertEqual(len(self.get_all_subnets(filters=filters)), subnets_num)
- self.vpcconn.delete_vpn_connection(vpnc.id)
- self.vpcconn.delete_vpc(vpc.id)
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in assert_error (arguments ▶)
- else:
- raise self.failureException(
- "Error message {0} != {1}".format(error_code, error_codes)
- )
- else:
- raise self.failureException("{0} not raised".format(error_codes))
- def ping(
- self,
- ip,