Always display the details if an ACL is specified.

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3131 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/topic_common_unittest.py b/cli/topic_common_unittest.py
index 972f22d..75075db 100755
--- a/cli/topic_common_unittest.py
+++ b/cli/topic_common_unittest.py
@@ -842,14 +842,21 @@
 
 
     def test_print_mix_table(self):
-        self.__test_print_mix_table_std(['name', 'hostname'],
-                                        ['hosts', 'users'],
+        self.__test_print_mix_table_std(['name', 'hostname'], [],
                                         'Name   Host\n'
                                         'name0  h0\n'
                                         'name1  h1\n')
 
-    # TODO(jmeurin) Add actual test with sublist_keys.
 
+    def test_print_mix_table_sublist(self):
+        self.__test_print_mix_table_std(['name', 'hostname'], ['labels'],
+                                        'Name   Host\n'
+                                        'name0  h0\n'
+                                        'Labels: \n'
+                                        '\tl0, l1\n\n\n'
+                                        'name1  h1\n'
+                                        'Labels: \n'
+                                        '\tl2, l3\n\n\n')
 
 
     #