

def test_img_sizes(tmpdir):
    'Test that image size is swaped if needed.'
    conf = tmpdir.join('sigal.conf.py')
    conf.write('# -*- coding: utf-8 -*-\n\nthumb_size = (150, 200)\n')
    settings = read_settings(str(conf))
    assert (settings['thumb_size'] == (200, 150))

dataset/ETHPy150Open saimn/sigal/tests/test_settings.py test_img_sizes/original