| 417 | ) |
| 418 | |
| 419 | def testGetLabel(self): |
| 420 | label = self.repo.get_label("Label with silly name % * + created by PyGithub") |
| 421 | self.assertEqual(label.color, "00ff00") |
| 422 | self.assertEqual(label.name, "Label with silly name % * + created by PyGithub") |
| 423 | self.assertEqual( |
| 424 | label.url, |
| 425 | "https://api.github.com/repos/PyGithub/PyGithub/labels/Label+with+silly+name+%25+%2A+%2B+created+by+PyGithub", |
| 426 | ) |
| 427 | |
| 428 | def testCreateHookWithMinimalParameters(self): |
| 429 | hook = self.repo.create_hook("web", {"url": "http://foobar.com"}) |