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

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

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

        assert outPublisher == 'test, other'