Esempio n. 1
0
 def test_22_array_to_schema_node__empty_array(self):
     scm = TT.array_to_schema_node([], TT._SIMPLETYPE_MAP)
     ref_scm = {'type': 'string'}
     self.assertTrue(dicts_equal(scm, ref_scm), scm)
Esempio n. 2
0
 def test_20_array_to_schema_node(self):
     scm = TT.array_to_schema_node([1], TT._SIMPLETYPE_MAP)
     ref_scm = {'type': 'integer'}
     self.assertTrue(dicts_equal(scm, ref_scm), scm)