Ejemplo n.º 1
0
 def test_array_of_array_of_strings(self):
     ar = Array(Array(String()))
     d = ar.cwl_type()
     self.assertDictEqual(
         {
             "type": "array",
             "items": {
                 "type": "array",
                 "items": "string"
             }
         }, d.save())
Ejemplo n.º 2
0
 def test_array_of_array_of_strings(self):
     ar = Array(Array(String()))
     d = ar.cwl_type()
     self.assertEqual(
         d.get_dict(),
         {
             "type": "array",
             "items": {
                 "type": "array",
                 "items": "string"
             }
         },
     )