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