def test_location_in_attachments(): builder = MessageBuilder() builder.image() builder.location() assert builder.message.attachments.location
def test_contact_in_attachments(): builder = MessageBuilder() builder.image() builder.contact() assert builder.message.attachments.contact
def test_document_in_attachments(): builder = MessageBuilder() builder.image() builder.document() assert builder.message.attachments.document
def test_telephone_in_attachments(): builder = MessageBuilder() tel_url = "tel://+77777777777" builder.image() builder.link(url=tel_url) assert builder.message.attachments.telephone == "+77777777777"
def test_email_in_attachments(): builder = MessageBuilder() mailto_url = "mailto:[email protected]" builder.image() builder.link(url=mailto_url) assert builder.message.attachments.email == "*****@*****.**"
def test_link_in_attachments(): builder = MessageBuilder() builder.image() builder.link() assert builder.message.attachments.link
def test_video_in_attachments(): builder = MessageBuilder() builder.image() builder.video() assert builder.message.attachments.video