Exemple #1
0
 def test_init_partial(self):
     sot = clusters.ClusterRecoverRequest(identity='cluster')
     self.assertEqual('cluster', sot.identity)
     self.assertFalse(sot.obj_attr_is_set('params'))
Exemple #2
0
 def test_init(self):
     sot = clusters.ClusterRecoverRequest(identity='cluster',
                                          params={'foo': 'bar'})
     self.assertEqual('cluster', sot.identity)
     self.assertEqual({'foo': 'bar'}, sot.params)