Exemplo n.º 1
0
 def testAnyListSchema(self):
   x = gcl.loads("""
     y = { x : [] }
   """)
   self.assertEquals(schema.ListSchema(schema.AnySchema()), x['y'].tuple_schema.get_subschema('x'))
Exemplo n.º 2
0
 def testInheritSchemaWithOverriddenValueWhichIsAList(self):
   x = gcl.loads("""
     y = { x : [int] } { x = [3] };
   """)
   self.assertEquals(schema.ListSchema(schema.ScalarSchema('int')), x['y'].tuple_schema.get_subschema('x'))
Exemplo n.º 3
0
 def testListSchema(self):
   x = gcl.loads("""
     y = { x : [int] }
   """)
   self.assertEquals(schema.ListSchema(schema.ScalarSchema('int')), x['y'].tuple_schema.get_subschema('x'))