def test_good_002(self): scheme1 = {'id': int} scheme2 = {'name': str} scheme3 = {'email': str} s = Scheme(AnyOf(scheme1, scheme2, scheme3)) s.validate({'id': 10}, [])
def test_good_001(self): s = Scheme({'id': int}) s.validate({'id': 10}, [])