equal
deleted
inserted
replaced
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() |