(self)
| 230 | with open(self.path, 'r') as f: return f.read() |
| 231 | |
| 232 | def getJson(self): |
| 233 | exists, error = self.existsWithError() |
| 234 | if not exists: |
| 235 | raise DataApiError('unable to get file {} - {}'.format(self.path, error)) |
| 236 | return json.loads(open(self.path, 'r').read()) |
| 237 | |
| 238 | def exists(self): |
| 239 | return self.existsWithError()[0] |
nothing calls this directly
no test coverage detected