コード例 #1
0
 def test_valid_primitives(self):
     for t, type_props in PRIMITIVES.iteritems():
         dt = DataType({'type': t}, {}, {})
         assert_equals(dt.type, t)
         for f in type_props['formats']:
             dtf = DataType({'type': t, 'format': f}, {}, {})
             assert_equals(dtf.type, t)
             assert_equals(dtf.format, f)
コード例 #2
0
 def test_valid_primitives(self):
     for t, type_props in PRIMITIVES.iteritems():
         items = Items({'type': t})
         assert_equals(items.type, t)
         for f in type_props['formats']:
             items = Items({'type': t, 'format': f})
             assert_equals(items.type, t)
             assert_equals(items.format, f)