fixed missing field, updated for 2012

This commit is contained in:
Binh 2012-10-09 15:31:35 -05:00
parent 717f929015
commit 6abfa5b345
4 changed files with 19 additions and 9 deletions

View file

@ -16,9 +16,16 @@ RECORD_TYPES = [
def test():
import record, model
from fields import ValidationError
for rname in RECORD_TYPES:
inst = record.__dict__[rname]()
print type(inst), inst.record_identifier, len(inst.output())
try:
output_length = len(inst.output())
except ValidationError, e:
print e.msg, type(inst), inst.record_identifier
continue
print type(inst), inst.record_identifier, output_length
def test_dump():