Beispiel #1
0
    def test_getPublishers_stripped(self, mocker):
        outPublisher = KMeansManager.getPublishers(['Test Second [].||viaf|'])

        assert outPublisher == 'test second'
Beispiel #2
0
    def test_getPublishers_none(self, mocker):
        outPublisher = KMeansManager.getPublishers(None)

        assert outPublisher == ''
Beispiel #3
0
    def test_getPublishers_clean(self, mocker):
        outPublisher = KMeansManager.getPublishers(['Test|||', 'Other|||'])

        assert outPublisher == 'test, other'