예제 #1
0
def test_location_in_attachments():
    builder = MessageBuilder()
    builder.image()
    builder.location()
    assert builder.message.attachments.location
예제 #2
0
def test_contact_in_attachments():
    builder = MessageBuilder()
    builder.image()
    builder.contact()
    assert builder.message.attachments.contact
예제 #3
0
def test_document_in_attachments():
    builder = MessageBuilder()
    builder.image()
    builder.document()
    assert builder.message.attachments.document
예제 #4
0
def test_telephone_in_attachments():
    builder = MessageBuilder()
    tel_url = "tel://+77777777777"
    builder.image()
    builder.link(url=tel_url)
    assert builder.message.attachments.telephone == "+77777777777"
예제 #5
0
def test_email_in_attachments():
    builder = MessageBuilder()
    mailto_url = "mailto:[email protected]"
    builder.image()
    builder.link(url=mailto_url)
    assert builder.message.attachments.email == "*****@*****.**"
예제 #6
0
def test_link_in_attachments():
    builder = MessageBuilder()
    builder.image()
    builder.link()
    assert builder.message.attachments.link
예제 #7
0
def test_video_in_attachments():
    builder = MessageBuilder()
    builder.image()
    builder.video()
    assert builder.message.attachments.video