iro/tests/model_validate.py
branchdevel
changeset 241 546316b0b09c
parent 231 3929338fd17f
child 294 0e75bd39767d
equal deleted inserted replaced
240:3406d3bf05d4 241:546316b0b09c
     3 from iro.model.pool import data
     3 from iro.model.pool import data
     4 
     4 
     5 from iro.error import ValidateException
     5 from iro.error import ValidateException
     6 
     6 
     7 from ..test_helpers.dbtestcase import DBTestCase
     7 from ..test_helpers.dbtestcase import DBTestCase
     8 
     8 from ..test_helpers.utils import DummyPool
     9 class DummyPool():
       
    10     def run(self, f,*a,**k):
       
    11         return f(*a,**k)
       
    12 
     9 
    13 class ModelVaidatorTest(DBTestCase):
    10 class ModelVaidatorTest(DBTestCase):
    14     """tests for the model vaidators"""
    11     """tests for the model vaidators"""
    15     def setUp(self):
    12     def setUp(self):
    16         DBTestCase.setUp(self)
    13         DBTestCase.setUp(self)