Skip to content

Commit

Permalink
Dexterity tests: test without blob files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jone committed Mar 22, 2013
1 parent 7b93603 commit 147ecae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftw/publisher/core/tests/test_dexterity.py
Expand Up @@ -7,7 +7,7 @@
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import applyProfile
from plone.dexterity.utils import createContentInContainer
from plone.namedfile.file import NamedBlobFile
from plone.namedfile.file import NamedFile
from unittest2 import TestCase
from zope.component import getAdapter
from zope.configuration import xmlconfig
Expand Down Expand Up @@ -92,7 +92,7 @@ def test_namedfile_files(self):

foo = createContentInContainer(
self.portal, 'DXFile', title=u'Foo')
foo.file = NamedBlobFile(data=filedata, filename=u'fuu.txt')
foo.file = NamedFile(data=filedata, filename=u'fuu.txt')
data = self._get_field_data(foo, json=True)

bar = createContentInContainer(
Expand Down

0 comments on commit 147ecae

Please sign in to comment.