Did I find the right examples for you? yes no

All Samples(79547)  |  Call(0)  |  Derive(0)  |  Import(79547)
Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's
Smalltalk testing framework.

This module contains the core framework classes that form the basis of
specific test cases and suites (TestCase, TestSuite etc.), and also a
text-based utility class for running the tests and reporting the results
 (TextTestRunner).

Simple usage:

    import unittest

    class IntegerArithmenticTestCase(unittest.TestCase):
        def testAdd(self):  ## test method names begin 'test*'
            self.assertEqual((1 + 2), 3)
            self.assertEqual(0 + 1, 1)
        def testMultiply(self):
            self.assertEqual((0 * 10), 0)
            self.assertEqual((5 * 8), 40)

    if __name__ == '__main__':
        unittest.main()

Further information is available in the bundled documentation, and from

  http://docs.python.org/library/unittest.html

Copyright (c) 1999-2003 Steve Purcell
Copyright (c) 2003-2010 Python Software Foundation
This module is free software, and you may redistribute it and/or modify
it under the same terms as Python itself, so long as this copyright message
and disclaimer are retained in their original form.

IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/trial/test/sample.py   oh-mainline(Download)
"""
 
import unittest as pyunit
from twisted.trial import unittest
from twisted.python.util import mergeFunctionMetadata

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/testlib.py   modern-python-example(Download)
from itertools import dropwhile
 
import unittest as unittest_legacy
if not getattr(unittest_legacy, "__package__", None):
    try:
        sys.exit("You have to install python-unittest2 to use this module")
else:
    import unittest
    from unittest import SkipTest
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/trial/test/sample.py   hortonworks-sandbox(Download)
"""
 
import unittest as pyunit
from twisted.trial import unittest
 

src/k/i/kitsune-HEAD/vendor/packages/nose/functional_tests/support/package1/tests/test_example_function.py   kitsune(Download)
import example
import unittest
 
class TestExampleFunction_TestCase(unittest.TestCase):
    def test_times_two(self):

src/o/h/oh-mainline-HEAD/vendor/packages/python-openid/openid/test/test_examples.py   oh-mainline(Download)
"Test some examples."
 
import socket
import os.path, unittest, sys, time
from cStringIO import StringIO

src/o/h/oh-mainline-HEAD/vendor/packages/gdata/tests/gdata_tests/sample_util_test.py   oh-mainline(Download)
 
 
import unittest
import sys
import gdata.sample_util

src/f/j/fjord-HEAD/vendor/packages/nose/functional_tests/support/package1/tests/test_example_function.py   fjord(Download)
import example
import unittest
 
class TestExampleFunction_TestCase(unittest.TestCase):
    def test_times_two(self):

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/__del___test.py   PySide(Download)
# 02110-1301 USA
 
import unittest
import sample
 

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/writableclassdict_test.py   PySide(Download)
# 02110-1301 USA
 
import unittest
from sample import Point
 

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/weakref_test.py   PySide(Download)
 
import weakref
import unittest
 
from sample import ObjectType, PrivateDtor

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next