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

Method testInviteUserWithBoth

tests/Organization.py:576–580  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

574 self.assertEqual("specify only one of email or user", str(raisedexp.exception))
575
576 def testInviteUserWithBoth(self):
577 jacquev6 = self.g.get_user("jacquev6")
578 with self.assertRaises(AssertionError) as raisedexp:
579 self.org.invite_user(email="foo", user=jacquev6)
580 self.assertEqual("specify only one of email or user", str(raisedexp.exception))
581
582 def testInviteUserByName(self):
583 jacquev6 = self.g.get_user("jacquev6")

Callers

nothing calls this directly

Calls 2

get_userMethod · 0.80
invite_userMethod · 0.80

Tested by

no test coverage detected