From 4eabef61f64c9d80430f98a5fb6a6ef182b86f6e Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Wed, 22 Nov 2006 19:30:01 +0100 Subject: [PATCH] Initialize DataForm unit tests darcs-hash:20061122183001-86b55-d86c899b1fccbe0328f0608a3c66641796e37b1d.gz --- run_tests.py | 11 +++++++++++ tests/jcl/jabber/test_x.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/jcl/jabber/test_x.py diff --git a/run_tests.py b/run_tests.py index 4b3abaa..2b38bf1 100644 --- a/run_tests.py +++ b/run_tests.py @@ -37,6 +37,7 @@ del sys.setdefaultencoding import tests from tests.jcl.jabber.test_component import * from tests.jcl.jabber.test_feeder import * +from tests.jcl.jabber.test_x import * from tests.jcl.test_lang import * import jcl @@ -50,7 +51,11 @@ if __name__ == '__main__': feeder_component_suite = unittest.makeSuite(FeederComponent_TestCase, "test") feeder_suite = unittest.makeSuite(Feeder_TestCase, "test") sender_suite = unittest.makeSuite(Sender_TestCase, "test") + dataform_suite = unittest.makeSuite(DataForm_TestCase, "test") + field_suite = unittest.makeSuite(Field_TestCase, "test") + option_suite = unittest.makeSuite(Option_TestCase, "test") lang_suite = unittest.makeSuite(Lang_TestCase, "test") + jcl_suite = unittest.TestSuite() # jcl_suite.addTest(FeederComponent_TestCase('test_handle_tick')) # jcl_suite.addTest(FeederComponent_TestCase('test_handle_get_register_new')) @@ -60,6 +65,9 @@ if __name__ == '__main__': feeder_component_suite, \ feeder_suite, \ sender_suite, \ + dataform_suite, \ + field_suite, \ + option_suite, \ lang_suite)) test_support.run_suite(jcl_suite) @@ -67,8 +75,11 @@ if __name__ == '__main__': coverage.stop() coverage.analysis(jcl.jabber.component) coverage.analysis(jcl.jabber.feeder) +coverage.analysis(jcl.jabber.x) coverage.analysis(jcl.lang) + coverage.report([jcl.jabber.component, \ jcl.jabber.feeder, \ + jcl.jabber.x, \ jcl.lang]) diff --git a/tests/jcl/jabber/test_x.py b/tests/jcl/jabber/test_x.py new file mode 100644 index 0000000..b67b881 --- /dev/null +++ b/tests/jcl/jabber/test_x.py @@ -0,0 +1,32 @@ +## +## test_x.py +## Login : David Rousselie +## Started on Wed Nov 22 19:24:19 2006 David Rousselie +## $Id$ +## +## Copyright (C) 2006 David Rousselie +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## + +import unittest + +class DataForm_TestCase(unittest.TestCase): + pass + +class Field_TestCase(unittest.TestCase): + pass + +class Option_TestCase(unittest.TestCase): + pass