def METHOD_NAME(self):
    self.assertFalse(self.top.is_optimized())
    self.assertFalse(self.top.has_exec())
    self.assertFalse(self.top.has_import_star())
    self.assertTrue(self.spam.is_optimized())
    self.assertFalse(self.foo.is_optimized())
    self.assertTrue(self.foo.has_exec())
    self.assertTrue(self.foo.has_import_star())