Mercurial > piecrust2
changeset 1115:11b9d0c8bd62
tests: Fix assetor tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 24 Feb 2018 21:13:54 -0800 |
parents | 8af2ea1f5c34 |
children | 40228511d600 |
files | tests/test_data_assetor.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_data_assetor.py Thu Feb 22 22:12:45 2018 -0800 +++ b/tests/test_data_assetor.py Sat Feb 24 21:13:54 2018 -0800 @@ -43,8 +43,8 @@ assert en in assetor assert hasattr(assetor, en) path = site_root.rstrip('/') + '/foo/bar/%s.txt' % en - assert assetor[en] == path - assert getattr(assetor, en) == path + assert str(assetor[en]) == path + assert str(getattr(assetor, en)) == path def test_missing_asset():