示例#1
0
 def test_neutron_api_relation_changed(self, configs):
     self.relation_ids.return_value = ['relid']
     _compute_joined = self.patch('compute_joined')
     _quantum_joined = self.patch('quantum_joined')
     hooks.neutron_api_relation_changed()
     self.assertTrue(configs.write.called_with('/etc/nova/nova.conf'))
     self.assertTrue(_compute_joined.called)
     self.assertTrue(_quantum_joined.called)
 def test_neutron_api_relation_changed(self, configs):
     self.relation_ids.return_value = ['relid']
     _compute_joined = self.patch('compute_joined')
     _quantum_joined = self.patch('quantum_joined')
     hooks.neutron_api_relation_changed()
     self.assertTrue(configs.write.called_with('/etc/nova/nova.conf'))
     self.assertTrue(_compute_joined.called)
     self.assertTrue(_quantum_joined.called)