We sort alphabetically now (with directories first) because we're
using the storage API, which returns directories and files separately.

In other news, hooray for more storage API coverage!
This commit is contained in:
Matt Basta 2012-10-29 15:57:12 -07:00
Родитель 05ca29cf1a
Коммит 48146b9673
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -157,7 +157,7 @@ class TestFileHelper(amo.tests.TestCase):
cache.clear()
files = self.viewer.get_files().keys()
rt = files.index(u'chrome')
eq_(files[rt:rt + 3], [u'chrome', u'chrome/foo', u'chrome.manifest'])
eq_(files[rt:rt + 3], [u'chrome', u'chrome/foo', u'dictionaries'])
@patch.object(settings, 'FILE_VIEWER_SIZE_LIMIT', 5)
def test_file_size(self):