First step towards a MediaManager class: Compat one.

To get us moving towards a MediaManager class, the first
idea is to create a class that wraps our current dict based
manager and makes all users happy.
This commit is contained in:
Elrond
2013-03-08 14:37:33 +01:00
parent 827f91e603
commit 2077d6ed93
3 changed files with 32 additions and 4 deletions

View File

@@ -231,7 +231,8 @@ class TestSubmission:
media = self.check_media(request, {'title': u'Balanced Goblin'}, 1)
assert media.media_type == u'mediagoblin.media_types.image'
assert media.media_manager == img_MEDIA_MANAGER
assert media.media_manager.mm_dict == img_MEDIA_MANAGER
assert media.media_manager.entry == media
def test_sniffing(self, test_app):