def test_unknown_prefix(self): objlink = ObjectLink(object_id="Z12345") self.assertEqual(f"{objlink}", "<@Z12345>")
def test_with_label(self): objlink = ObjectLink(object_id="C12345", text="abc") self.assertEqual(f"{objlink}", "<#C12345|abc>")
def test_group_message(self): objlink = ObjectLink(object_id="G12345") self.assertEqual(f"{objlink}", "<#G12345>")
def test_subteam_message(self): objlink = ObjectLink(object_id="S12345") self.assertEqual(f"{objlink}", "<!subteam^S12345>")
def test_channel(self): objlink = ObjectLink(object_id="C12345") self.assertEqual(f"{objlink}", "<#C12345>")