def test_22_array_to_schema__empty_array(self): scm = TT.array_to_schema([]) ref = dict(items=dict(type="string"), type="array") self.assertTrue(dicts_equal(scm, ref), scm)
def test_20_array_to_schema(self): scm = TT.array_to_schema([1]) ref = dict(items=dict(type="integer"), type="array") self.assertTrue(dicts_equal(scm, ref), scm)