예제 #1
0
 def test_parse_0(self):
     path = os.path.join(os.path.dirname(os.path.realpath(__file__)),"parsers/cases/qe.output.0.testcase")
     with open(path,'r') as f:
         c1 = qe.output(f.read()).unitCells()
         c2 = parse(f,"unit-cell")
     
     for i,j in zip(c1,c2):
         assert i==j
예제 #2
0
 def setUp(self):
     with open(
             os.path.join(os.path.dirname(os.path.realpath(__file__)),
                          "cases/qe.output.0.testcase"), 'r') as f:
         self.parser = output(f)