From bc7f13cdb36212d0e2f9a8d86be9892a3c9dd373 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 14 Mar 2003 04:54:10 +0000 Subject: Add examples of ComfyChair (This used to be commit dfee0a6ad5d203df04df8a54da87ff5e493a33ca) --- source3/stf/example.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 source3/stf/example.py (limited to 'source3/stf/example.py') diff --git a/source3/stf/example.py b/source3/stf/example.py new file mode 100755 index 0000000000..1f121fd9af --- /dev/null +++ b/source3/stf/example.py @@ -0,0 +1,33 @@ +#! /usr/bin/env python + +# Copyright (C) 2003 by Martin Pool +# +# 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 + + +"""example of using ComfyChair""" + +import comfychair + +class OnePlusOne(comfychair.TestCase): + def runtest(self): + self.assert_(1 + 1 == 2) + +tests = [OnePlusOne] + +if __name__ == '__main__': + comfychair.main(tests) + -- cgit From 03ccc4ac13651b369a83d003ee4ee50225f74e32 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 4 Apr 2003 03:14:48 +0000 Subject: Merge from Subversion: Add example of a test that fails. (This used to be commit 1b1bb8ac37464339a7bffc84eb6d96ee1ae7d33d) --- source3/stf/example.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/stf/example.py') diff --git a/source3/stf/example.py b/source3/stf/example.py index 1f121fd9af..96e34bf3d3 100755 --- a/source3/stf/example.py +++ b/source3/stf/example.py @@ -26,8 +26,13 @@ class OnePlusOne(comfychair.TestCase): def runtest(self): self.assert_(1 + 1 == 2) +class FailTest(comfychair.TestCase): + def runtest(self): + self.assert_(1 + 1 == 3) + tests = [OnePlusOne] +extra_tests = [FailTest] if __name__ == '__main__': - comfychair.main(tests) + comfychair.main(tests, extra_tests=extra_tests) -- cgit From 34bb47c9b0f33c20a22df66326f674363ceea1a0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2007 01:52:05 +0000 Subject: r23791: found some more v2->v3 conversions (This used to be commit b6cbac3db3b478d5c7991cee78c6695fc8d22681) --- source3/stf/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/stf/example.py') diff --git a/source3/stf/example.py b/source3/stf/example.py index 96e34bf3d3..be67ea84a3 100755 --- a/source3/stf/example.py +++ b/source3/stf/example.py @@ -4,7 +4,7 @@ # # 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 +# published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but -- cgit From 9fa1c63578733077c0aaaeeb2fc97c3b191089cc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2007 03:42:26 +0000 Subject: r23798: updated old Temple Place FSF addresses to new URL (This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76) --- source3/stf/example.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/stf/example.py') diff --git a/source3/stf/example.py b/source3/stf/example.py index be67ea84a3..9c97cb7a20 100755 --- a/source3/stf/example.py +++ b/source3/stf/example.py @@ -13,9 +13,7 @@ # 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 +# along with this program; if not, see . """example of using ComfyChair""" -- cgit