コード例 #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()