1 # -*- coding: utf-8 -*-
3 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 """Testing utilities."""
8 from os.path import abspath, dirname, join
11 def get_fixture(path):
12 f_path = join(dirname(abspath(__file__)), 'tests/files', path)
13 with open(f_path) as f:
14 return unicode(f.read(), 'utf-8')