MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testAsUrlParam

Method testAsUrlParam

tests/Repository.py:278–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

276 self.assertEqual(self.repo.custom_properties, {})
277
278 def testAsUrlParam(self):
279 self.assertEqual(github.Repository.Repository.as_url_param(self.repo), "PyGithub/PyGithub")
280 self.assertEqual(github.Repository.Repository.as_url_param(self.repo._identity), "PyGithub/PyGithub")
281
282 for repo in ["repo", "repo/name/slash"]:
283 with self.assertRaises(AssertionError) as raisedexp:
284 github.Repository.Repository.as_url_param(repo)
285 self.assertEqual(raisedexp.exception.args, (repo,))
286
287 def testEditWithoutArguments(self):
288 self.repo.edit("PyGithub")

Callers

nothing calls this directly

Calls 1

as_url_paramMethod · 0.80

Tested by

no test coverage detected