コード例 #1
0
ファイル: test_emailer.py プロジェクト: glebite/Transporter
def test_Transporter_images_is_a_string_and_is_missing():
    trans_obj = Transporter()
    trans_obj.add_images("missing_image.jpg")
    # if there are no images, then no Content-ID added to msg_root
    assert 'Content-ID' not in trans_obj.msg_root
コード例 #2
0
ファイル: test_emailer.py プロジェクト: glebite/Transporter
def test_Transporter_images_is_a_text_file():
    trans_obj = Transporter()
    trans_obj.add_images("test_emailer.py")
    # if there are no images, then no Content-ID added to msg_root
    print(trans_obj.msg_root)
    assert 'Content-ID' not in trans_obj.msg_root
コード例 #3
0
ファイル: test_emailer.py プロジェクト: glebite/Transporter
def test_Transporter_missing_images():
    trans_obj = Transporter()
    trans_obj.add_images(["missing_image.jpg"])
    # if there are no images, then no Content-ID added to msg_root
    assert 'Content-ID' not in trans_obj.msg_root