def test_open(self): """ I test that file_opener gets things correctly!""" with open("sample.rst") as f: text = f.read() self.assertEqual(text, simplicity.file_opener("sample.rst"))
def test_basics(self): """ I test that file_opener returns more than just itself!""" text = simplicity.file_opener("sample.rst") self.assertNotEqual(text, "sample.rst") text = simplicity.file_opener("README.rst") self.assertNotEqual(text, "README.rst")