MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / test_document

Method test_document

tests/web/classes/test_blocks.py:566–573  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

564
565class FileBlockTests(unittest.TestCase):
566 def test_document(self):
567 input = {
568 "type": "file",
569 "external_id": "ABCD1",
570 "source": "remote",
571 }
572 self.assertDictEqual(input, FileBlock(**input).to_dict())
573 self.assertDictEqual(input, Block.parse(input).to_dict())
574
575
576# ----------------------------------------------

Callers

nothing calls this directly

Calls 3

FileBlockClass · 0.90
to_dictMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected