devtools/test/unittest_dbfill.py
changeset 10614 57dfde80df11
parent 10609 e2d8e81bfe68
child 10773 5b051dd4a4f5
equal deleted inserted replaced
10613:8d9fe02387e3 10614:57dfde80df11
    50             return getattr(self, '_available_%s_%s' % (etype, attrname))(etype, attrname)
    50             return getattr(self, '_available_%s_%s' % (etype, attrname))(etype, attrname)
    51         except AttributeError:
    51         except AttributeError:
    52             return None
    52             return None
    53 
    53 
    54     def _available_Person_firstname(self, etype, attrname):
    54     def _available_Person_firstname(self, etype, attrname):
    55         return [f.strip() for f in file(osp.join(DATADIR, 'firstnames.txt'))]
    55         return [f.strip() for f in open(osp.join(DATADIR, 'firstnames.txt'))]
    56 
    56 
    57     def setUp(self):
    57     def setUp(self):
    58         config = ApptestConfiguration('data', apphome=DATADIR)
    58         config = ApptestConfiguration('data', apphome=DATADIR)
    59         config.bootstrap_cubes()
    59         config.bootstrap_cubes()
    60         schema = config.load_schema()
    60         schema = config.load_schema()