def testNormalModesEigenvaluesTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.NormalModesEigenvaluesToken.match(reader, []) self.assertEqual(token, None)
def testAtomsAndBasisSetsTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.AtomsAndBasisSetsToken.match(reader, []) self.assertEqual(token, None)
def testOptimizationInfoTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.OptimizationInfoToken.match(reader, []) self.assertEqual(token, None)
def testGeometryConvergenceNumIterationsTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.GeometryConvergenceNumIterationsToken.match(reader, []) self.assertEqual(token, None)
def testFinalGeometryEnergyTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.FinalGeometryEnergyToken.match(reader, []) self.assertEqual(token, None)
def testCartesianCoordinatesTokenNotMatching(self): # fold>> data = filesnippets.fileHeader() writeToTestFile(data) reader = io.FileReader(testFilePath()) token = tokentypes.CartesianCoordinatesToken.match(reader, []) self.assertEqual(token, None)
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)