Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gssapi/creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def __new__(
super(Credentials, cls).__new__(cls, base_creds))

@property
def name(self) -> rnames.Name:
def name(self) -> names.Name:
"""Get the name associated with these credentials"""
return t.cast(rnames.Name,
return t.cast(names.Name,
self.inquire(name=True, lifetime=False, usage=False,
mechs=False).name)

Expand Down
2 changes: 2 additions & 0 deletions gssapi/tests/test_high_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def test_inquire(self, str_name, kwargs):

if kwargs['name']:
self.assertEqual(resp.name, self.name)
self.assertIsInstance(resp.name, gssnames.Name)
else:
self.assertIsNone(resp.name)

Expand All @@ -250,6 +251,7 @@ def test_inquire_by_mech(self, str_name, kwargs):

if kwargs['name']:
self.assertEqual(resp.name, self.name)
self.assertIsInstance(resp.name, gssnames.Name)
else:
self.assertIsNone(resp.name)

Expand Down