Package nltk_lite :: Package contrib :: Package classifier_tests :: Module classifytests :: Class ClassifyTestCase
[hide private]
[frames] | no frames]

Class ClassifyTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   ClassifyTestCase

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_reads_classifier_name(self) source code
 
test_accuracy_and_fscore_are_true_by_default(self) source code
 
test_classifyDoesNotThrowErrorIfRequiredComponentsArePresent(self) source code
 
test_classify_throws_error_if_neither_test_nor_gold_is_present(self) source code
 
test_only_files_implies_training_and_test(self) source code
 
test_files_with_verify_implies_training_and_gold(self) source code
 
test_throws_error_if_both_files_and_other_options_are_present(self) source code
 
test_throws_error_if_both_test_and_gold_files_are_present(self) source code
 
test_throws_error_if_verify_options_are_present_for_a_test_file(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)