summaryrefslogtreecommitdiff
path: root/tests/test_shell_util.py
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-12-07 16:48:51 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-12-08 16:10:11 +0000
commit83432149e212155469b1e9f06eb0095121377356 (patch)
tree9029a2e7836dce3025d5c5a6527d74bbf8d799e5 /tests/test_shell_util.py
parent04946cba49f19c0b6b876bccdbb36d47334af002 (diff)
downloadvyos-walinuxagent-83432149e212155469b1e9f06eb0095121377356.tar.gz
vyos-walinuxagent-83432149e212155469b1e9f06eb0095121377356.zip
Import patches-unapplied version 2.1.2-0ubuntu1 to ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: 04946cba49f19c0b6b876bccdbb36d47334af002 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.py9
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()