Closed mwarkentin closed 10 years ago
I'm not sure why this is triggering failures on python 3.x (haven't written any python 3 yet).
You removed test_validate_non_list, which is an accurate test for this field, and the test you added should assert that is_valid is false. A ListField should NOT accept non-list values. If you truly want list-or-item behavior, see #5 (I'll probably get that added in the next couple of days).
I just added a couple of tests in #7. Those are how I would characterize the expected behavior.
Closing as this will be taken care of in #7.
ListField
is invalid if passed a stringfield.validate
directlyfrom_native
instead ofvalidate