

def test_app_completion(self):
    'Application names will be autocompleted for an AppCommand'
    self._user_input('django-admin.py sqlall a')
    output = self._run_autocomplete()
    app_labels = [name.split('.')[(- 1)] for name in settings.INSTALLED_APPS]
    self.assertEqual(output, sorted((label for label in name if label.startswith('a'))))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/bash_completion/tests.py BashCompletionTests.test_app_completion/VarMisuse@63/104 `app_labels`->`name`