1234567891011121314151617181920212223242526272829 |
- __author__ = "Inyoung Choung"
- import os
- from os import path
- import unittest
- import app
- class writefiletest(unittest.TestCase):
- def runTest(self):
-
- filepath = "C:\In-young Choung\Computer Programming\Self Programming Files\grocerycalc\pytest.txt"
-
- app.writefile(filepath, "pythontest")
-
- app.readfile(filepath)
-
- self.assertTrue(str(path.isfile("pytest.txt")))
- if __name__ == '__main__':
- unittest.main()
|