def test_tagger_creates():
    a = TaggerFactory.factory("cess")
    assert isinstance(a, object)
 def __init__(self, words):
     self.words = words
     # Get tagger
     self.tagger = TaggerFactory.factory("cess")
     # Tag words
     self.tagged_words = self.tagger.tag(words)
def test_tagger_fails():
    a = TaggerFactory.factory("cep")
    assert a is None
 def __init__(self, words):
     self.tagger = TaggerFactory.factory("cess")
     self.words = words
     self.tagged_words_list = None