'Don\'t resize when update in progress'

def test_scaling_update_in_progress(self):

    self.group.state_set('UPDATE', 'IN_PROGRESS')
    resize = self.patchobject(self.group, 'resize')
    finished_scaling = self.patchobject(self.group, '_finished_scaling')
    notify = self.patch('heat.engine.notification.autoscaling.send')
    self.assertRaises(resource.NoActionRequired, self.group.adjust, 3, adjustment_type='ExactCapacity')
    expected_notifies = []
    self.assertEqual(expected_notifies, notify.call_args_list)
    self.assertEqual(0, resize.call_count)
    self.assertEqual(0, finished_scaling.call_count)
