def testDecodeComp(self): self.assertEqual(("foo", {"V": "1"}), naming.decode_id("foo$V1"))
def testDecodeNoComp(self): self.assertEqual(("foo", dict()), naming.decode_id("foo"))
def testDecodeComp(self): self.assertEqual(("foo", {"V":"1"}), naming.decode_id("foo$V1"))
def visit_Name(self, node): name, components = naming.decode_id(node.id) if "P" in components: self.found_vars.append(name)