fixed missing field, updated for 2012
This commit is contained in:
parent
717f929015
commit
6abfa5b345
4 changed files with 19 additions and 9 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue