Lines Matching refs:spam
52 spam = find_block(top, "spam") variable in SymtableTest
53 internal = find_block(spam, "internal")
60 self.assertEqual(self.spam.get_type(), "function")
68 self.assertTrue(self.spam.is_optimized())
77 self.assertFalse(self.spam.is_nested())
87 self.assertEqual(self.spam.get_lineno(), 11)
90 func = self.spam
98 self.assertTrue(self.spam.lookup("glob").is_global())
99 self.assertFalse(self.spam.lookup("glob").is_declared_global())
100 self.assertTrue(self.spam.lookup("bar").is_global())
101 self.assertTrue(self.spam.lookup("bar").is_declared_global())
106 self.assertTrue(self.spam.lookup("x").is_local())
111 self.assertTrue(self.spam.lookup("internal").is_referenced())
112 self.assertFalse(self.spam.lookup("x").is_referenced())
116 self.assertTrue(self.spam.lookup(sym).is_parameter())
117 self.assertFalse(self.spam.lookup("x").is_parameter())
129 self.assertTrue(self.spam.lookup("internal").is_namespace())
131 self.assertFalse(self.spam.lookup("x").is_namespace())
133 self.assertTrue(self.top.lookup("spam").get_namespace() is self.spam)
139 self.assertTrue(self.spam.lookup("x").is_assigned())
140 self.assertTrue(self.spam.lookup("bar").is_assigned())
150 self.assertEqual(self.spam.get_name(), "spam")
151 self.assertEqual(self.spam.lookup("x").get_name(), "x")