コード例 #1
0
 def test_unknown_prefix(self):
     objlink = ObjectLink(object_id="Z12345")
     self.assertEqual(f"{objlink}", "<@Z12345>")
コード例 #2
0
 def test_with_label(self):
     objlink = ObjectLink(object_id="C12345", text="abc")
     self.assertEqual(f"{objlink}", "<#C12345|abc>")
コード例 #3
0
 def test_group_message(self):
     objlink = ObjectLink(object_id="G12345")
     self.assertEqual(f"{objlink}", "<#G12345>")
コード例 #4
0
 def test_subteam_message(self):
     objlink = ObjectLink(object_id="S12345")
     self.assertEqual(f"{objlink}", "<!subteam^S12345>")
コード例 #5
0
 def test_channel(self):
     objlink = ObjectLink(object_id="C12345")
     self.assertEqual(f"{objlink}", "<#C12345>")