Example #1
0
 def test_file_exists_empty(self):
     result = interface.file_exists('')
     self.assertEqual(result, False)
Example #2
0
 def test_file_exists(self):
     temp_file = tempfile.mkstemp()[1]
     result = interface.file_exists(temp_file)
     self.assertEqual(result, True)
Example #3
0
 def test_file_exists_none(self):
     result = interface.file_exists(None)
     self.assertEqual(result, False)