(self)
| 89 | header.set_value(v) |
| 90 | |
| 91 | def init_github_fake(self): |
| 92 | # Theoretically, I should be able to pass this to init_urlfetch_stub. |
| 93 | # Practically, that doesn't work for unknown reasons, and this is fine. |
| 94 | uf = self.testbed.get_stub('urlfetch') |
| 95 | uf._urlmatchers_to_fetch_functions.append( # pylint: disable=protected-access |
| 96 | (lambda u: u.startswith('https://api.github.com'), self.urlfetch_github_stub)) |
| 97 | |
| 98 | def test_get_prs_from_github(self): |
| 99 | self.init_github_fake() |
no test coverage detected