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

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

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

        assert outPublisher == 'test, other'