Exemplo n.º 1
0
 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"))
Exemplo n.º 2
0
 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"))
Exemplo n.º 3
0
 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")
Exemplo n.º 4
0
 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")