You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import pytest
|
|
from src.fmt.city_formatter import CityFormatter
|
|
|
|
def test_city_format():
|
|
city = {'name': 'Chernihiv'}
|
|
|
|
formatter = CityFormatter()
|
|
|
|
city_fmt = formatter.format(city)
|
|
|
|
assert '- Chernihiv\n' == city_fmt
|
|
|