def test_sample_data7(self):
     value = '2.7 GHz'
     result = get_occurrences_and_values(self.sample6, value)
     self.assertEqual(1, result[value]['occurrences'])
     self.assertEqual(1, len(result[value]['values']))
 def test_sample_data9(self):
     value = '5'
     result = get_occurrences_and_values(self.sample7, value)
     self.assertEqual(0, result[value]['occurrences'])
     self.assertEqual(0, len(result[value]['values']))
# every key is filtered for uniqueness ( a set )
uniqueKeys = list(set(nested_lookup.get_all_keys(electricBoogalu)))

# Just want to be stuck with the list of unique header keys
# will also include header files that arent found
sF = []
for x in sourceFiles:
    sF.append(x[28:])
queryKeys = uniquify(sF, uniqueKeys)
# --> want to get the total number of header nodes to look at

# get_occurrences_and_values returns a data type like:
# {"occurrences":# of times,"values":{}} --> everything inside is values

# terminal node, just like {} nodes (empty nodes)
notFound = nested_lookup.get_occurrences_and_values(
    [electricBoogalu], value=ERROR_ENUM["ERROR: FILE NOT FOUND"])

# recursive includes will have an edge going back up!... eh
# for now recursive includes will just be removed from the set --> need to remove everything that has the value recursive inclusion
recursiveInclude = nested_lookup.get_occurrences_and_values(
    [electricBoogalu], value=ERROR_ENUM["ERROR: RECURSIVE INCLUSION"])

# everything ends with {} now
filteredStructure = recursiveFilterNodes(electricBoogalu)

# i think at some point I want to switch terminating from {} to None or 0..
# otherwise, nested_lookup.get_occurrences_and_values won't be useful!

# same layered NODES -- unconnected
# calling layer NODE -- connected to each nested node below