Пример #1
0
 def test_knows_if_desnt_exists(self):
     """If the file does not exists, can NFile tell?"""
     existing_nfile = NFile(self._non_existing_file.name)
     self._non_existing_file.close()
     self.assertFalse(existing_nfile._exists())
 def test_knows_if_desnt_exists(self):
     """If the file does not exists, can NFile tell?"""
     existing_nfile = NFile(self._non_existing_file.name)
     self._non_existing_file.close()
     self.assertFalse(existing_nfile._exists())
Пример #3
0
 def test_knows_if_exists(self):
     """If the file exists, can NFile tell?"""
     existing_nfile = NFile(self._existing_file.name)
     self.assertTrue(existing_nfile._exists())
 def test_knows_if_exists(self):
     """If the file exists, can NFile tell?"""
     existing_nfile = NFile(self._existing_file.name)
     self.assertTrue(existing_nfile._exists())