MCPcopy Create free account
hub / github.com/O365/python-o365 / test_prefix_scope

Method test_prefix_scope

tests/test_protocol.py:64–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 assert(self.proto.get_scopes_for('mailbox') == ['Mail.Read'])
63
64 def test_prefix_scope(self):
65 assert(self.proto.prefix_scope('Mail.Read') == 'Mail.Read')
66
67 self.proto.protocol_scope_prefix = 'test_prefix_'
68
69 assert(self.proto.prefix_scope('test_prefix_Mail.Read') == 'test_prefix_Mail.Read')
70
71 assert(self.proto.prefix_scope('Mail.Read') == 'test_prefix_Mail.Read')
72
73 def test_decendant_MSOffice365Protocol(self):
74 # Basically we just test that it can create the class w/o erroring.

Callers

nothing calls this directly

Calls 1

prefix_scopeMethod · 0.80

Tested by

no test coverage detected