def test_voyant_url(self):
        # Volume with English Lang
        volume1 = SolrVolume(label='ocn460678076_V.1',
                             pid='testpid:1234', language='eng')
        url = volume1.voyant_url()

        self.assert_(urlencode({'corpus': volume1.pid}) in url,
            'voyant url should include volume pid as corpus identifier')
        self.assert_(urlencode({'archive': volume1.fulltext_absolute_url()}) in url,
            'voyant url should include volume fulltext url as archive')
        self.assert_(urlencode({'stopList': 'stop.en.taporware.txt'}) in url,
            'voyant url should not include english stopword list when volume is in english')

        # volume language is French
        volume2 = SolrVolume(label='ocn460678076_V.1',
                             pid='testpid:1235', language='fra')
        url_fra = volume2.voyant_url()
        self.assert_(urlencode({'stopList': 'stop.en.taporware.txt'}) not in url_fra,
            'voyant url should not include english stopword list when language is not english')