/[escript]/trunk/escriptcore/test/python/test_util_base.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/test_util_base.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4154 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4447 by caltinay, Wed Jun 12 13:55:53 2013 UTC
# Line 75  class Test_util_base(unittest.TestCase): Line 75  class Test_util_base(unittest.TestCase):
75          f.close()          f.close()
76          self.assertTrue(f.closed,"file shuold be closed.")          self.assertTrue(f.closed,"file shuold be closed.")
77          self.__checkContent(fn,["line1", "line2", "line3"])          self.__checkContent(fn,["line1", "line2", "line3"])
78            os.unlink(fn)
79    
80     def test_FileWriter_A(self):     def test_FileWriter_A(self):
81          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_a.txt")          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_a.txt")
# Line 92  class Test_util_base(unittest.TestCase): Line 93  class Test_util_base(unittest.TestCase):
93          f.close()          f.close()
94          self.assertTrue(f.closed,"file shuold be closed.")          self.assertTrue(f.closed,"file shuold be closed.")
95          self.__checkContent(fn,["line1", "line2", "line3", "line4"])          self.__checkContent(fn,["line1", "line2", "line3", "line4"])
96            os.unlink(fn)
97    
98     def test_FileWriter_A_loc(self):     def test_FileWriter_A_loc(self):
99          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_a_loc.txt")          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_a_loc.txt")
# Line 113  class Test_util_base(unittest.TestCase): Line 115  class Test_util_base(unittest.TestCase):
115          f.close()          f.close()
116          self.assertTrue(f.closed,"file shuold be closed.")          self.assertTrue(f.closed,"file shuold be closed.")
117          self.__checkContent(fn2,["line1", "line2", "line3", "line4"])          self.__checkContent(fn2,["line1", "line2", "line3", "line4"])
118            os.unlink(fn2)
119    
120     def test_FileWriter_W_loc(self):     def test_FileWriter_W_loc(self):
121          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_w_loc.txt")          fn=os.path.join(ESCRIPT_WORKDIR, "filewriter_w_loc.txt")
# Line 133  class Test_util_base(unittest.TestCase): Line 136  class Test_util_base(unittest.TestCase):
136          f.close()          f.close()
137          self.assertTrue(f.closed,"file shuold be closed.")          self.assertTrue(f.closed,"file shuold be closed.")
138          self.__checkContent(fn2,["line1", "line2", "line3"])          self.__checkContent(fn2,["line1", "line2", "line3"])
139            os.unlink(fn2)
140    
141  #=========================================================  #=========================================================
142  #  constants  #  constants
143  #=========================================================  #=========================================================

Legend:
Removed from v.4154  
changed lines
  Added in v.4447

  ViewVC Help
Powered by ViewVC 1.1.26