plone.app.discussion/plone/app/discussion/tests/test_api.py
Lennart Regebro a6fb8dd8de Added a test setup.
svn path=/plone.app.discussion/trunk/; revision=26958
2009-05-16 09:47:10 +00:00

35 lines
1014 B
Python

import unittest
from base import TestCase
from zope.testing import doctestunit
from zope.component import testing, getMultiAdapter
from zope.publisher.browser import TestRequest
from zope.publisher.interfaces.browser import IBrowserView
from Testing import ZopeTestCase as ztc
from Products.Five import zcml
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
class APITest(TestCase):
def afterSetUp(self):
# XXX If we make this a layer, it only get run once...
# First we need to create some content.
self.loginAsPortalOwner()
typetool = self.portal.portal_types
typetool.constructContent('Document', self.portal, 'doc1')
def test_test(self):
raise NotImplementedError
def test_suite():
return unittest.TestSuite([
unittest.makeSuite(APITest),
])
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')