def test_neutron_api_relation_broken(self, configs, isfile, remove): isfile.return_value = True self.relation_ids.return_value = ['relid'] _compute_joined = self.patch('compute_joined') _quantum_joined = self.patch('quantum_joined') hooks.neutron_api_relation_broken() self.assertTrue(configs.write_all.called) self.assertTrue(_compute_joined.called) self.assertTrue(_quantum_joined.called)
def test_neutron_api_relation_broken(self, configs, isfile, remove): isfile.return_value = True self.relation_ids.return_value = ['relid'] _compute_joined = self.patch('compute_joined') _quantum_joined = self.patch('quantum_joined') hooks.neutron_api_relation_broken() self.assertTrue(configs.write_all.called) self.assertTrue(_compute_joined.called) self.assertTrue(_quantum_joined.called)