2
# -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*-
4
from __future__ import unicode_literals
10
from DistUpgrade.DistUpgradeViewText import DistUpgradeViewText
13
class TestDistUpradeView(unittest.TestCase):
15
def test_show_in_pager_lp1068389(self):
16
"""Regression test for LP: #1068389"""
17
output = tempfile.NamedTemporaryFile()
18
os.environ["PAGER"] = "less -F -O%s" % output.name
19
v = DistUpgradeViewText()
21
with open(output.name, "rb") as fp:
22
self.assertEqual(fp.read().decode("utf-8"), "äää")
24
if __name__ == "__main__":