Пример #1
0
  def testIsntFile(self):
    self.assertEqual(False, os_path_mock.isfile('/dir'))
    self.assertEqual(False, os_path_mock.isfile('dir'))

    self.assertEqual(False, os_path_mock.isfile('/link'))
    self.assertEqual(False, os_path_mock.isfile('link'))
Пример #2
0
 def testIsFile(self):
   self.assertEqual(True, os_path_mock.isfile('/file'))
   self.assertEqual(True, os_path_mock.isfile('file'))