class MyDoc(SchemaDocument): structure = { "foo": NOT(six.text_type, int), "bar": NOT(datetime), "foobar": NOT(string_type) }
class BadMyDoc(SchemaDocument): structure = {"bla": NOT(int, tuple)}
class BadMyDoc(SchemaDocument): structure = {"bla":NOT(unicode,str)}
class MyDoc(SchemaDocument): structure = { "foo":NOT(unicode,int), "bar":NOT(datetime) }
class BadMyDoc(SchemaDocument): structure = {"bla": NOT(str, str)}