Package nltk_lite :: Package contrib :: Package classifier_tests :: Module instancetests :: Class InstanceTestCase
[hide private]
[frames] | no frames]

Class InstanceTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   InstanceTestCase

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_create_n_validate_instance(self) source code
 
test_training_instance_has_class_and_attributes(self) source code
 
test_test_instance_has_only_attributes_and_none_as_class(self) source code
 
test_cannot_set_class_in_training_instance(self) source code
 
test_should_be_able_to_set_class_on_test_instance(self) source code
 
test_gold_instance_creates_class(self) source code
 
test_classes_can_be_set_on_gold_instance(self) source code
 
test_string_representation(self) source code
 
test_get_attribute_value_from_instance_using_attribute(self) source code
 
test_discretise_using_discretised_attributes(self) source code
 
test_values_of_atrributes(self) source code
 
test_remove_attrbutes(self) source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)