File: test_vcard_utils.py

package info (click to toggle)
opgpcard 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 864 kB
  • sloc: python: 520; makefile: 19
file content (16 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""opgpcard tests."""

from opgpcard.vcard_utils import gen_vcard_attrs_dict


def test_gen_vcard_attrs_dict():
    fp = 'XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX'
    mail = 'other_example@othermail.com'
    fname = 'otherfname'
    lname = 'otherlname'
    xpath_text_dict = {'fp': fp, 'mail': mail,
                       'fname': fname, 'lname': lname}
    d = gen_vcard_attrs_dict(fname, lname, mail, fp)
    assert xpath_text_dict == d

# TODO: more tests