def test_part_list(self, *args, **kwargs): '''Function should call new function and raise deprecation warning''' parted.part_list("foo", "bar") parted.list_.assert_called_once_with("foo", "bar") parted.salt.utils.warn_until.assert_called_once_with( 'Beryllium', '''The \'part_list\' function has been deprecated in favor of \'list_\'. Please update your code and configs to reflect this.''')
def test_part_list(self, *args, **kwargs): '''Function should call new function and raise deprecation warning''' parted.part_list("foo", "bar") parted.list_.assert_called_once_with("foo", "bar") parted.salt.utils.warn_until.assert_called_once_with( 'Beryllium', '''The \'part_list\' function has been deprecated in favor of \'list_\'. Please update your code and configs to reflect this.''')