def testClearHistory(self): """Tests a simple CppIncludeStd constructor and clearHistory().""" myObj = IncludeHandler.CppIncludeStd([], []) myObj.validateCpStack() myObj.clearHistory() self.assertEqual(myObj._cpStack, []) self.assertEqual(myObj._findLogic, [])
def test_initialTuFails(self): """Tests initialTu() is not implemented.""" myObj = IncludeHandler.CppIncludeStd([], []) self.assertRaises( NotImplementedError, myObj.initialTu, 'NonExistentFile', )
def test_searchFileFails(self): """Tests _searchFile() is not implemented.""" myObj = IncludeHandler.CppIncludeStd([], []) self.assertRaises(NotImplementedError, myObj._searchFile, 'NonExistentFile', os.curdir)
def testConstructor(self): """Tests a simple CppIncludeStd constructor.""" myObj = IncludeHandler.CppIncludeStd([], []) myObj.validateCpStack()