1# 2# Copyright OpenEmbedded Contributors 3# 4# SPDX-License-Identifier: MIT 5# 6 7from oeqa.sdk.case import OESDKTestCase 8 9from oeqa.utils.subprocesstweak import errors_have_output 10errors_have_output() 11 12class Python3Test(OESDKTestCase): 13 def setUp(self): 14 self.ensure_host_package("python3-core", recipe="python3") 15 16 def test_python3(self): 17 cmd = "python3 -c \"import codecs; print(codecs.encode('Uryyb, jbeyq', 'rot13'))\"" 18 output = self._run(cmd) 19 self.assertEqual(output, "Hello, world\n") 20