| 177 | self._write() |
| 178 | |
| 179 | def _header(self): |
| 180 | return ( |
| 181 | "# %s\n" |
| 182 | "# This file is written out on a per-environment basis.\n" |
| 183 | "# For each test in aaa_profiling, the corresponding " |
| 184 | "function and \n" |
| 185 | "# environment is located within this file. " |
| 186 | "If it doesn't exist,\n" |
| 187 | "# the test is skipped.\n" |
| 188 | "# If a callcount does exist, it is compared " |
| 189 | "to what we received. \n" |
| 190 | "# assertions are raised if the counts do not match.\n" |
| 191 | "# \n" |
| 192 | "# To add a new callcount test, apply the function_call_count \n" |
| 193 | "# decorator and re-run the tests using the --write-profiles \n" |
| 194 | "# option - this file will be rewritten including the new count.\n" |
| 195 | "# \n" |
| 196 | ) % (self.fname) |
| 197 | |
| 198 | def _read(self): |
| 199 | try: |