import os, sys
if __name__ == '__main__':
    execfile(os.path.join(sys.path[0], 'framework.py'))

from Testing import ZopeTestCase
ZopeTestCase.installProduct('Photo')

from Products.Photo.PhotoFolder import PhotoFolder

class photofolderTestCase(ZopeTestCase.ZopeTestCase):

    _setup_fixture = 0

    def afterSetUp(self):
        self.i = PhotoFolder('photofolder', 'TestTitle') 
    
    def testCreation(self):
        """ Check for the correct creation of a workitem """
        assert self.i, 'photofolder not created'


def getSuite():
    suite= unittest.makeSuite(photofolderTestCase, 'test')
    return suite

if __name__ == '__main__':
    framework(descriptions=1, verbosity=1)
else:
    import unittest
    test_suite = getSuite
