EduploneWebdidactics/tests testDMLVocabulary.py,NONE,1.1 testRelationMetadata.py,NONE,1.1
Jens Klein <[email protected]>
| Newsgroups | gmane.comp.web.zope.eduplone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/eduplone/EduploneWebdidactics/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6170/tests
Added Files:
testDMLVocabulary.py testRelationMetadata.py
Log Message:
added tests
--- NEW FILE: testRelationMetadata.py ---
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Products.CMFPlone.tests import PloneTestCase
import common
common.installProducts()
class TestRelationMetadata(PloneTestCase.PloneTestCase):
def afterSetUp(self):
common.installWithinPortal(self, self.portal)
def testSomething(self):
self.assertEqual(2, 1+1)
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestSomething))
return suite
if __name__ == '__main__':
framework()
--- NEW FILE: testDMLVocabulary.py ---
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Products.CMFPlone.tests import PloneTestCase
import common
common.installProducts()
class TestDMLVocabulary(PloneTestCase.PloneTestCase):
def afterSetUp(self):
common.installWithinPortal(self, self.portal)
common.createRulebook(self, self.portal)
common.createSampleVocabulary(self, self.portal)
self.atvm = self.portal.atvocabulary_manager
def testAddEntry(self):
self.loginPortalOwner()
vocab = self.portal.atvocabulary_manager.dml
vocab.invokeFactory('DMLRelationVocabularyItem', 'entry1')
# self.assert(hasattr(vocab, 'entry1'))
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestDMLVocabulary))
return suite
if __name__ == '__main__':
framework()
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8