diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-11-19 04:35:31 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-11-19 04:35:31 +0000 |
| commit | 7875421a03a5af3006152216215fc3a9a9b8b274 (patch) | |
| tree | a1aace4efe7b1039c7ddecb73932123be1deb9e7 /tests/regressiontests/bash_completion/tests.py | |
| parent | 468ca16319977628bdae2be527514a30b35dd6fa (diff) | |
Fixed #11243 -- Ensured that bash_completion output is emitted in sorted order. Thanks to Alex Gaynor for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/bash_completion/tests.py')
| -rw-r--r-- | tests/regressiontests/bash_completion/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/bash_completion/tests.py b/tests/regressiontests/bash_completion/tests.py index 3e938143fe..24c8b1d3f3 100644 --- a/tests/regressiontests/bash_completion/tests.py +++ b/tests/regressiontests/bash_completion/tests.py @@ -65,7 +65,7 @@ class BashCompletionTests(unittest.TestCase): "Subcommands can be autocompleted" self._user_input('django-admin.py sql') output = self._run_autocomplete() - self.assertEqual(output, ['sqlinitialdata sqlclear sqlreset sqlsequencereset sql sqlall sqlflush sqlcustom sqlindexes']) + self.assertEqual(output, ['sql sqlall sqlclear sqlcustom sqlflush sqlindexes sqlinitialdata sqlreset sqlsequencereset']) def test_help(self): "No errors, just an empty list if there are no autocomplete options" @@ -84,4 +84,4 @@ class BashCompletionTests(unittest.TestCase): 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(set(output), set(label for label in app_labels if label.startswith('a'))) + self.assertEqual(output, sorted(label for label in app_labels if label.startswith('a'))) |
