equal
deleted
inserted
replaced
54 |
54 |
55 def _available_Person_firstname(self, etype, attrname): |
55 def _available_Person_firstname(self, etype, attrname): |
56 return [f.strip() for f in io.open(osp.join(DATADIR, 'firstnames.txt'), encoding='latin1')] |
56 return [f.strip() for f in io.open(osp.join(DATADIR, 'firstnames.txt'), encoding='latin1')] |
57 |
57 |
58 def setUp(self): |
58 def setUp(self): |
59 config = ApptestConfiguration('data', apphome=DATADIR) |
59 config = ApptestConfiguration('data', __file__) |
60 config.bootstrap_cubes() |
60 config.bootstrap_cubes() |
61 schema = config.load_schema() |
61 schema = config.load_schema() |
62 e_schema = schema.eschema('Person') |
62 e_schema = schema.eschema('Person') |
63 self.person_valgen = ValueGenerator(e_schema, self._choice_func) |
63 self.person_valgen = ValueGenerator(e_schema, self._choice_func) |
64 e_schema = schema.eschema('Bug') |
64 e_schema = schema.eschema('Bug') |