Commits

Naoki INADA committed d51934e

More test.

  • Participants
  • Parent commits 6307590

Comments (0)

Files changed (1)

bpython/test/test_repl.py

         from bpython.test import _pep263_1 as mod
         source = repl.get_source(mod.spam)
         self.assertTrue(source.startswith("def spam(self):\n"))
+        self.assertTrue(b"\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88"
+                        in source.encode('utf-8'))
 
     def test_pep263_2(self):
         from bpython.test import _pep263_2 as mod
         source = repl.get_source(mod.spam)
         self.assertTrue(source.startswith("def spam(self):\n"))
+        self.assertTrue(b"\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88"
+                        in source.encode('utf-8'))
 
     def test_get_source_of_current_name(self):
         r = FakeRepl()