import unittest
import difflib
-from Editeur import appli
+from InterfaceTK import appli
from config import ASTERDIR
+version="v8"
+
def cdiff(text1,text2):
return " ".join(difflib.context_diff(text1.splitlines(1),text2.splitlines(1)))
def setUp(self):
if self.app == None:
- self.app=appli.STANDALONE(version='v8')
+ self.app=appli.STANDALONE(version=version)
pass
def tearDown(self):
CONTEXT.unset_current_step()
i=0
- for f in glob.glob(os.path.join(ASTERDIR,files)):
+ for f in glob.glob(os.path.join(ASTERDIR[version],files)):
ff=open(f)
text=ff.read()
ff.close()