Did I find the right examples for you? yes no

All Samples(4572)  |  Call(0)  |  Derive(4003)  |  Import(569)
A class whose instances are single test cases.

By default, the test code itself should be placed in a method named
'runTest'.

If the fixture may be used for many test cases, create as
many test methods as are needed. When instantiating such a TestCase
subclass, specify in the constructor arguments the name of the test method
that the instance is to execute.
(more...)

src/u/p/UP-Manager-0.0.0/tests/test_discovery_sample/tests_sample.py   UP-Manager(Download)
from unittest import TestCase as UnitTestCase
 
from django.test import TestCase as DjangoTestCase
from django.utils.unittest import TestCase as UT2TestCase
 
class TestUnittest2(UT2TestCase):
 
    def test_sample(self):
        self.assertEqual(1, 1)
 

src/d/j/Django-1.6.4/tests/test_discovery_sample/tests_sample.py   Django(Download)
from unittest import TestCase as UnitTestCase
 
from django.test import TestCase as DjangoTestCase
from django.utils.unittest import TestCase as UT2TestCase
 
class TestUnittest2(UT2TestCase):
 
    def test_sample(self):
        self.assertEqual(1, 1)
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/tests/test_measure.py   hunch-sample-app(Download)
class DistanceTest(unittest.TestCase):
    "Testing the Distance object"
 
    def testInit(self):
        "Testing initialisation from valid units"
class AreaTest(unittest.TestCase):
    "Testing the Area object"
 
    def testInit(self):
        "Testing initialisation from valid units"

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/tests/test_mutable_list.py   hunch-sample-app(Download)
class ListMixinTest(unittest.TestCase):
    """
    Tests base class ListMixin by comparing a list clone which is
    a ListMixin subclass with a real Python list.
    """

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/tests/layermap/tests.py   hunch-sample-app(Download)
class LayerMapTest(unittest.TestCase):
 
    def test01_init(self):
        "Testing LayerMapping initialization."
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/tests/test_geos_mutation.py   hunch-sample-app(Download)
class GEOSMutationTest(unittest.TestCase):
    """
    Tests Pythonic Mutability of Python GEOS geometry wrappers
    get/set/delitem on a slice, normal list methods
    """

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_srs.py   hunch-sample-app(Download)
class SpatialRefTest(unittest.TestCase):
 
    def test01_wkt(self):
        "Testing initialization on valid OGC WKT."
        for s in srlist:

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_geom.py   hunch-sample-app(Download)
class OGRGeomTest(unittest.TestCase, TestDataMixin):
    "This tests the OGR Geometry."
 
    def test00a_geomtype(self):
        "Testing OGRGeomType object."

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/gdal/tests/test_envelope.py   hunch-sample-app(Download)
class EnvelopeTest(unittest.TestCase):
 
    def setUp(self):
        self.e = Envelope(0, 0, 5, 5)
 

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/tests/test_spatialrefsys.py   hunch-sample-app(Download)
class SpatialRefSysTest(unittest.TestCase):
 
    @no_mysql
    def test01_retrieve(self):
        "Testing retrieval of SpatialRefSys model objects."

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