Esempio n. 1
0
 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, [])
Esempio n. 2
0
 def test_initialTuFails(self):
     """Tests initialTu() is not implemented."""
     myObj = IncludeHandler.CppIncludeStd([], [])
     self.assertRaises(
         NotImplementedError,
         myObj.initialTu,
         'NonExistentFile',
     )
Esempio n. 3
0
 def test_searchFileFails(self):
     """Tests _searchFile() is not implemented."""
     myObj = IncludeHandler.CppIncludeStd([], [])
     self.assertRaises(NotImplementedError, myObj._searchFile,
                       'NonExistentFile', os.curdir)
Esempio n. 4
0
 def testConstructor(self):
     """Tests a simple CppIncludeStd constructor."""
     myObj = IncludeHandler.CppIncludeStd([], [])
     myObj.validateCpStack()