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()
def test_make_directory(self): with mock.patch('kb_python.dry.utils.print') as p: self.assertIsNone(utils.make_directory('path')) p.assert_called()