devtools/test/unittest_dbfill.py
branchstable
changeset 3755 9b973e8eabb3
parent 1977 606923dff11b
child 4212 ab6573088b4a
equal deleted inserted replaced
3754:a9c641f6193b 3755:9b973e8eabb3
    44 
    44 
    45     def setUp(self):
    45     def setUp(self):
    46         config = ApptestConfiguration('data')
    46         config = ApptestConfiguration('data')
    47         config.bootstrap_cubes()
    47         config.bootstrap_cubes()
    48         schema = config.load_schema()
    48         schema = config.load_schema()
    49         e_schema = schema.entity_schema('Person')
    49         e_schema = schema.eschema('Person')
    50         self.person_valgen = ValueGenerator(e_schema, self._choice_func)
    50         self.person_valgen = ValueGenerator(e_schema, self._choice_func)
    51         e_schema = schema.entity_schema('Bug')
    51         e_schema = schema.eschema('Bug')
    52         self.bug_valgen = MyValueGenerator(e_schema)
    52         self.bug_valgen = MyValueGenerator(e_schema)
    53         self.config = config
    53         self.config = config
    54 
    54 
    55     def _check_date(self, date):
    55     def _check_date(self, date):
    56         """checks that 'date' is well-formed"""
    56         """checks that 'date' is well-formed"""