'Tests that we don\'t pop the hw_watchdog_action if the value is not
\'disabled\'.'

def test_obj_make_compatible_watchdog_action_not_disabled(self):

    obj = objects.ImageMetaProps(hw_watchdog_action=fields.WatchdogAction.PAUSE)
    primitive = obj.obj_to_primitive('1.0')
    self.assertIn('hw_watchdog_action', primitive['nova_object.data'])
    self.assertEqual(fields.WatchdogAction.PAUSE, primitive['nova_object.data']['hw_watchdog_action'])
