Add a couple of simple completion test cases for 'target ' and 'target va'.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@149656 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/completion/TestCompletion.py b/test/functionalities/completion/TestCompletion.py
index 48a4a77..973bd3c 100644
--- a/test/functionalities/completion/TestCompletion.py
+++ b/test/functionalities/completion/TestCompletion.py
@@ -102,6 +102,17 @@
                                'target.process.thread.step-avoid-regexp',
                                'target.process.thread.trace-thread'])
 
+    def test_target_space(self):
+        """Test that 'target ' completes to ['Available completions:', 'create', 'delete', 'list',
+        'modules', 'select', 'stop-hook', 'variable']."""
+        self.complete_from_to('target ',
+                              ['Available completions:', 'create', 'delete', 'list',
+                               'modules', 'select', 'stop-hook', 'variable'])
+
+    def test_target_va(self):
+        """Test that 'target va' completes to 'target variable '."""
+        self.complete_from_to('target va', 'target variable ')
+
     def complete_from_to(self, str_input, patterns):
         """Test that the completion mechanism completes str_input to patterns,
         where patterns could be a pattern-string or a list of pattern-strings"""