Ejemplo n.º 1
0
	def testReadAll(self):
		"""
		This method tests :meth:`foundations.io.File.readAll` method.
		"""

		ioFile = File(TEST_FILE)
		self.assertIsInstance(ioFile.content, list)
		content = ioFile.readAll()
		self.assertIsInstance(ioFile.content, list)
		self.assertEqual(content, "".join(FILE_CONTENT))