Exemple #1
0
 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.''')
Exemple #2
0
 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.''')