Exemple #1
0
 def test_get_attribute_special(self):
     for n in ("assert","pass","del","print","return","yield","raise","break",
             "continue","import","global","exec"):
         self.s = MockStatement()
         self.o = MockFunctionBuilder(self.s)
         self.i = _FunctionBuilderInterface(self.o)
         s = getattr(self.i, n+"_")
         self.assertIs(self.s,s)
         self.o.check_created(self,[n])
Exemple #2
0
 def setUp(self):
     self.s = MockStatement()
     self.o = MockFunctionBuilder(self.s)
     self.i = _FunctionBuilderInterface(self.o)