@@ -52,18 +52,18 @@ def test_min_items(asserter, value, expected):
52
52
([1 , 1 ], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
53
53
([1 , 2 , 3 ], [1 , 2 , 3 ]),
54
54
([True , False ], [True , False ]),
55
- ([True , True ], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
55
+ ([True , True ], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
56
56
(['abc' , 'bce' , 'hhh' ], ['abc' , 'bce' , 'hhh' ]),
57
- (['abc' , 'abc' ], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
57
+ (['abc' , 'abc' ], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
58
58
([{'a' : 'a' }, {'b' : 'b' }], [{'a' : 'a' }, {'b' : 'b' }]),
59
- ([{'a' : 'a' }, {'a' : 'a' }], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
59
+ ([{'a' : 'a' }, {'a' : 'a' }], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
60
60
([{'a' : 'a' , 'b' : 'b' }, {'b' : 'b' , 'c' : 'c' }], [{'a' : 'a' , 'b' : 'b' }, {'b' : 'b' , 'c' : 'c' }]),
61
- ([{'a' : 'a' , 'b' : 'b' }, {'b' : 'b' , 'a' : 'a' }], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
61
+ ([{'a' : 'a' , 'b' : 'b' }, {'b' : 'b' , 'a' : 'a' }], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
62
62
([1 , '1' ], [1 , '1' ]),
63
63
([{'a' : 'b' }, "{'a': 'b'}" ], [{'a' : 'b' }, "{'a': 'b'}" ]),
64
64
([[1 , 2 ], [2 , 1 ]], [[1 , 2 ], [2 , 1 ]]),
65
- ([[1 , 2 ], [1 , 2 ]], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
66
- ([{'a' : {'b' : {'c' : [1 , 2 ]}}}, {'a' : {'b' : {'c' : [1 , 2 ]}}}], JsonSchemaException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
65
+ ([[1 , 2 ], [1 , 2 ]], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
66
+ ([{'a' : {'b' : {'c' : [1 , 2 ]}}}, {'a' : {'b' : {'c' : [1 , 2 ]}}}], JsonSchemaValueException ('data must contain unique items' , value = '{data}' , name = 'data' , definition = '{definition}' , rule = 'uniqueItems' )),
67
67
([{'a' : {'b' : {'c' : [2 , 1 ]}}}, {'a' : {'b' : {'c' : [1 , 2 ]}}}], [{'a' : {'b' : {'c' : [2 , 1 ]}}}, {'a' : {'b' : {'c' : [1 , 2 ]}}}]),
68
68
])
69
69
def test_unique_items (asserter , value , expected ):
0 commit comments