MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / assertFolderIsEmpty

Method assertFolderIsEmpty

app/atomic_file_test.py:44–47  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

42 # unittest.TestCase assert methods.
43 # pylint: disable=invalid-name
44 def assertFolderIsEmpty(self, path):
45 self.assertTrue(os.path.exists(path))
46 self.assertTrue(os.path.isdir(path))
47 self.assertEqual([], os.listdir(path))
48
49 def test_persists_new_file_in_destination_folder(self):
50 file_path = os.path.join(self.destination_dir.name, 'test.txt')

Calls

no outgoing calls

Tested by

no test coverage detected