Ejemplo n.º 1
0
 def test_pubProcessor_list(self):
     cleanStr = KMeansManager.pubProcessor(['hello', 'sn', 'goodbye'])
     assert cleanStr == 'hello goodbye'
Ejemplo n.º 2
0
 def test_pubProcessor_none(self):
     cleanStr = KMeansManager.pubProcessor(None)
     assert cleanStr == ''
Ejemplo n.º 3
0
    def test_pubProcessor_str(self):
        cleanStr = KMeansManager.pubProcessor('Testing & Testing,')
        assert cleanStr == 'testing and testing'

        cleanStr2 = KMeansManager.pubProcessor('[publisher not identified]')
        assert cleanStr2 == ''