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.