Пример #1
0
 def test_rename(self, rename_mock):
     utils.rename('source', 'destination')
     rename_mock.assert_called_once_with('source', 'destination')
 def test_rename(self, rename_mock):
     utils.rename('source', 'destination')
     rename_mock.assert_called_once_with('source', 'destination')
Пример #3
0
 def do(self):
     rename(self._from, self._to, self._overwrite)