def test_list_of_max_items_only(self):
     assert list_of('some_time', maxItems=10) == dict(type='array',
                                                      items=[ref('some_time')],
                                                      maxItems=10)
    def test_list_of(self):
        assert list_of('some_time') == dict(type='array',
                                            items=[{'$ref': '#/definitions/some_time'}])

        assert dict(type='array', items=[ref('some_time')]) == list_of('some_time')
 def test_list_of_exact_items(self):
     assert list_of('some_time', exactItems=10) == dict(type='array',
                                                        items=[ref('some_time')],
                                                        maxItems=10,
                                                        minItems=10)
    def test_list_or_null(self):
        assert type_list_or_null == dict(oneOf=[dict(type='array'), type_null])

        assert dict(type='array', items=[ref('some_time')]) == list_of('some_time')