def test1(self):
    x = JSGPython('doc {\n            last_name : @string,       # exactly one last name of type string\n            first_name : @string+      # array or one or more first names\n            age : @int?,               # optional age of type int\n            weight : @number*          # array of zero or more weights\n        }\n        ')
    rslts = x.conforms('\n        { "last_name" : "snooter",\n          "first_name" : ["grunt", "peter"],\n          "weight" : []\n        }')
    self.assertTrue(rslts.success)
def test1(self):
    x = JSGPython('doc {\n            last_name : @string,       # exactly one last name of type string\n            first_name : @string+      # array or one or more first names\n            age : @int?,               # optional age of type int\n            weight : @number*          # array of zero or more weights\n        }\n        ')
    rslts = x.conforms('\n        { "last_name" : "snooter",\n          "first_name" : ["grunt", "peter"],\n          "weight" : []\n        }')
    self.assertTrue(rslts.success)