SVN: zpkgtools/trunk/zpkgtools/tests/test_config.py add some missing tests
"Fred L. Drake, Jr." <[email protected]>
| Newsgroups | gmane.comp.web.zope.public-cvs |
|---|---|
| Message-ID | <[email protected]> |
Log message for revision 37755:
add some missing tests
Changed:
U zpkgtools/trunk/zpkgtools/tests/test_config.py
-=-
Modified: zpkgtools/trunk/zpkgtools/tests/test_config.py
===================================================================
--- zpkgtools/trunk/zpkgtools/tests/test_config.py 2005-08-05 23:16:15 UTC (rev 37754)
+++ zpkgtools/trunk/zpkgtools/tests/test_config.py 2005-08-06 03:09:02 UTC (rev 37755)
@@ -39,6 +39,7 @@
def test_constructor(self):
cf = config.Configuration()
self.assert_(cf.include_support_code)
+ self.assert_(not cf.application)
self.assert_(not cf.collect_dependencies)
self.assertEqual(len(cf.locations), 0)
self.assertEqual(len(cf.location_maps), 0)
@@ -81,6 +82,22 @@
cf = config.Configuration()
self.assertRaises(IOError, cf.loadPath, path)
+ def test_simple_values_false(self):
+ cf = self.load_text("build-application no\n"
+ "collect-dependencies false\n"
+ "include-support-code false\n")
+ self.assert_(not cf.application)
+ self.assert_(not cf.collect_dependencies)
+ self.assert_(not cf.include_support_code)
+
+ def test_simple_values_true(self):
+ cf = self.load_text("build-application true\n"
+ "collect-dependencies yes\n"
+ "include-support-code true\n")
+ self.assert_(cf.application)
+ self.assert_(cf.collect_dependencies)
+ self.assert_(cf.include_support_code)
+
def load_text(self, text, path=None, basedir=None):
if path is None:
if basedir is None:
_______________________________________________
Zope-CVS maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs
Zope CVS instructions: http://dev.zope.org/CVS