示例#1
0
def test_from_country_code_to_name__invalid_code():
    # Given
    code = 'XY'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert None is actual
示例#2
0
def test_from_country_code_to_name__valid_lower_code():
    # Given
    code = 'fr'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert 'FRANCE' == actual
示例#3
0
def test_from_country_code_to_name__valid_code():
    # Given
    code = 'IT'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert 'ITALY' == actual
示例#4
0
def test_from_country_code_to_name__invalid_code():
    # Given
    code = 'XY'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert None is actual
示例#5
0
def test_from_country_code_to_name__valid_lower_code():
    # Given
    code = 'fr'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert 'FRANCE' == actual
示例#6
0
def test_from_country_code_to_name__valid_code():
    # Given
    code = 'IT'

    # When
    actual = sut.from_country_code_to_name(code)

    # Then
    assert 'ITALY' == actual