示例#1
0
 def test_make_directory_windows(self):
     with mock.patch('kb_python.dry.utils.print') as p,\
         mock.patch('kb_python.dry.utils.PLATFORM', 'windows'):
         self.assertIsNone(utils.make_directory('path'))
         p.assert_called()
示例#2
0
 def test_make_directory(self):
     with mock.patch('kb_python.dry.utils.print') as p:
         self.assertIsNone(utils.make_directory('path'))
         p.assert_called()