reverend.tests package

Submodules

reverend.tests.test_email module

Tests for L{reverend.guessers.email}.

class reverend.tests.test_email.EmailClassifierTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for L{EmailClassifier}

setUp()[source]

Create a L{Message} and an L{EmailClassifier}.

test_guessing()[source]

L{EmailClassifier.guess} accepts a L{Message} and returns a pool name.

test_training()[source]

L{EmailClassifier.train} accepts a pool name and a L{Message} instance and trains the classifier to put similar messages into that pool.

reverend.tests.test_thomas module

Tests for L{reverend.thomas}.

class reverend.tests.test_thomas.TestThomas(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for L{Bayes}.

setUp()[source]
test_guess_trained()[source]

It should return the proper guess when trained.

test_guess_untrained()[source]

It should return an empty list when not trained.

Module contents