Example #1
0
 def test_remove_directory_windows(self):
     with mock.patch('kb_python.dry.utils.print') as p,\
         mock.patch('kb_python.dry.utils.PLATFORM', 'windows'):
         self.assertIsNone(utils.remove_directory('path'))
         p.assert_called()
Example #2
0
 def test_remove_directory(self):
     with mock.patch('kb_python.dry.utils.print') as p:
         self.assertIsNone(utils.remove_directory('path'))
         p.assert_called()