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