예제 #1
0
파일: tests.py 프로젝트: patrikch/planovac
 def test_tree_read_job_count(self):
     """Project file should have 229 jobs"""
     p_file = ProjectFile()
     file2 = "D:\\zz Nove Jazyky\\Python\\PlanovacApp\\Planovac\\core\\files\\2015-2016.pln"
     proj = p_file.read(file2,self.owner)
     jobs = 0
     for eng in proj.engines:
         jobs += len(eng)
     self.assertEqual(229,jobs)
예제 #2
0
파일: tests.py 프로젝트: patrikch/planovac
 def test_tree_read_job_count(self):
     """Project file should have 229 jobs"""
     p_file = ProjectFile()
     file2 = "D:\\zz Nove Jazyky\\Python\\PlanovacApp\\Planovac\\core\\files\\2015-2016.pln"
     proj = p_file.read(file2, self.owner)
     jobs = 0
     for eng in proj.engines:
         jobs += len(eng)
     self.assertEqual(229, jobs)
예제 #3
0
파일: tests.py 프로젝트: patrikch/planovac
 def test_tree_read_engine_count(self):
     """Project file should have 41 engines"""
     p_file = ProjectFile()
     file2 = "D:\\zz Nove Jazyky\\Python\\PlanovacApp\\Planovac\\core\\files\\2015-2016.pln"        
     proj = p_file.read(file2,self.owner)
     self.assertEqual(41,len(proj.engines))
예제 #4
0
파일: tests.py 프로젝트: patrikch/planovac
 def test_tree_read_engine_count(self):
     """Project file should have 41 engines"""
     p_file = ProjectFile()
     file2 = "D:\\zz Nove Jazyky\\Python\\PlanovacApp\\Planovac\\core\\files\\2015-2016.pln"
     proj = p_file.read(file2, self.owner)
     self.assertEqual(41, len(proj.engines))