add initial test

This commit is contained in:
Frédéric Péters 2013-02-28 15:31:26 +01:00
parent a7c20baaab
commit 9594c70ffc
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import unittest2 as unittest
from Products.CMFCore.utils import getToolByName
from collective.dms.batchimport.testing import INTEGRATION
class TestSetup(unittest.TestCase):
layer = INTEGRATION
def setUp(self):
self.app = self.layer['app']
self.portal = self.layer['portal']
self.qi_tool = getToolByName(self.portal, 'portal_quickinstaller')
def test_product_is_installed(self):
""" Validate that our products GS profile has been run and the product
installed
"""
pid = 'collective.dms.batchimport'
installed = [p['id'] for p in self.qi_tool.listInstalledProducts()]
self.assertTrue(pid in installed,
'package appears not to have been installed')