def test_init(self): sot = clusters.ClusterResizeRequest(identity='foo') self.assertEqual('foo', sot.identity) self.assertFalse(sot.obj_attr_is_set('adjustment_type')) self.assertFalse(sot.obj_attr_is_set('number')) self.assertFalse(sot.obj_attr_is_set('min_size')) self.assertFalse(sot.obj_attr_is_set('max_size')) self.assertFalse(sot.obj_attr_is_set('min_step')) self.assertFalse(sot.obj_attr_is_set('strict'))
def test_init_with_params(self): sot = clusters.ClusterResizeRequest(identity='foo', adjustment_type='EXACT_CAPACITY', number=100, min_size=10, max_size=100, min_step=1, strict=False) self.assertEqual('foo', sot.identity) self.assertEqual('EXACT_CAPACITY', sot.adjustment_type) self.assertEqual(100, sot.number) self.assertEqual(10, sot.min_size) self.assertEqual(100, sot.max_size) self.assertEqual(1, sot.min_step) self.assertFalse(sot.strict)