Ejemplo n.º 1
0
 def test_StaticValiables_None(self):
     target = SourceCode(self.none_ast)
     valiables = target.StaticValiables()
     self.assertEqual(valiables, [])
Ejemplo n.º 2
0
 def test_StaticValiables_valid(self):
     target = SourceCode(self.valid_ast)
     valiables = target.StaticValiables()
     self.assertEqual(len(valiables), 3)
     example = valiables[0]
     self.assertEqual(example.name, 'm_int_val1')