cic-internal-integration/apps/cic-ussd/tests/cic_ussd/account/test_maps.py
2021-08-06 16:29:01 +00:00

29 lines
542 B
Python

# standard imports
# external imports
import pytest
# local imports
from cic_ussd.account.maps import gender, language
# test imports
@pytest.mark.parametrize('key, expected_value', [
('1', 'male'),
('2', 'female'),
('3', 'other')
])
def test_gender(key, expected_value):
g_map = gender()
assert g_map[key] == expected_value
@pytest.mark.parametrize('key, expected_value', [
('1', 'en'),
('2', 'sw'),
])
def test_language(key, expected_value):
l_map = language()
assert l_map[key] == expected_value