diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2015-12-07 16:48:51 -0700 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2015-12-08 16:10:11 +0000 |
commit | 542c7a834728ad35d7f5f98cacdf78d86721656f (patch) | |
tree | 6850cbc7ce3dec800c1b50f23da6b76077198159 /tests/test_shell_util.py | |
parent | f6e3f158c2fb9021b37654ea20839ec7a4308d52 (diff) | |
parent | f4e6aca60e419eafbdf11bdd631d35cf785735ae (diff) | |
download | vyos-walinuxagent-542c7a834728ad35d7f5f98cacdf78d86721656f.tar.gz vyos-walinuxagent-542c7a834728ad35d7f5f98cacdf78d86721656f.zip |
Import patches-applied version 2.1.2-0ubuntu1 to applied/ubuntu/xenial-proposed
Imported using git-ubuntu import.
Changelog parent: f6e3f158c2fb9021b37654ea20839ec7a4308d52
Unapplied parent: f4e6aca60e419eafbdf11bdd631d35cf785735ae
New changelog entries:
* New upstream release (LP: #1523715):
- Bug fixes for Ubuntu 15.10 on Azure
- Enablement for Azure Stack
- Dropped patch for systemd job as upstream now includes it.
Diffstat (limited to 'tests/test_shell_util.py')
-rw-r--r-- | tests/test_shell_util.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_shell_util.py b/tests/test_shell_util.py index 9862745..9f84c6d 100644 --- a/tests/test_shell_util.py +++ b/tests/test_shell_util.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Copyright 2014 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -25,15 +26,19 @@ import unittest import os import azurelinuxagent.utils.shellutil as shellutil import test +from azurelinuxagent.future import text class TestrunCmd(unittest.TestCase): def test_run_get_output(self): - output = shellutil.run_get_output("ls /") + output = shellutil.run_get_output(u"ls /") self.assertNotEquals(None, output) self.assertEquals(0, output[0]) - err = shellutil.run_get_output("ls /not-exists") + err = shellutil.run_get_output(u"ls /not-exists") self.assertNotEquals(0, err[0]) + err = shellutil.run_get_output(u"ls 我") + self.assertNotEquals(0, err[0]) + if __name__ == '__main__': unittest.main() |