Ejemplo n.º 1
0
 def _test_nova_api_relation_joined(self, tgt, is_api_ready):
     is_api_ready.return_value = tgt
     exp = 'yes' if tgt else 'no'
     hooks.nova_api_relation_joined(rid='foo')
     self.relation_set.assert_called_with('foo', **{'nova-api-ready': exp})
 def _test_nova_api_relation_joined(self, tgt, is_api_ready):
     is_api_ready.return_value = tgt
     exp = 'yes' if tgt else 'no'
     hooks.nova_api_relation_joined(rid='foo')
     self.relation_set.assert_called_with(
         'foo', **{'nova-api-ready': exp})