Beispiel #1
0
 def testNormalModesEigenvaluesTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.NormalModesEigenvaluesToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #2
0
 def testAtomsAndBasisSetsTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.AtomsAndBasisSetsToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #3
0
 def testOptimizationInfoTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.OptimizationInfoToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #4
0
 def testGeometryConvergenceNumIterationsTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.GeometryConvergenceNumIterationsToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #5
0
 def testFinalGeometryEnergyTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.FinalGeometryEnergyToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #6
0
 def testCartesianCoordinatesTokenNotMatching(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     token = tokentypes.CartesianCoordinatesToken.match(reader, [])
     
     self.assertEqual(token, None)
Beispiel #7
0
 def testFileHeaderToken(self): # fold>>
     data = filesnippets.fileHeader()
     writeToTestFile(data)
     
     reader = io.FileReader(testFilePath())
     start_pos = reader.currentPos()
     token = tokentypes.FileHeaderToken.match(reader, [])
     
     self.assertEqual(token.__class__, tokentypes.FileHeaderToken)
     self.assertEqual(reader.currentPos(), start_pos+1)