def test_extract_coden(self): self.assertEquals(self.instance_ingester.instance.coden[0], 'ASIRAF') self.assertEquals(self.instance_ingester.instance.coden[1], 'ASITAF') self.assert_(TEST_REDIS.sismember('identifiers:coden:invalid', self.instance_ingester.instance.coden[1]))
def test_isrc(self): self.assertEquals(self.instance_ingester.instance.isrc[0], 'NLC018413261') self.assert_(TEST_REDIS.sismember("identifiers:isrc:invalid", "NLC018403261"))
def test_iso(self): self.assertEquals(self.instance_ingester.instance.iso[0], '19200 Baud') self.assert_(TEST_REDIS.sismember('identifiers:iso:invalid', '2400 Baud'))
def test_extract_legal_deposit(self): self.assertEquals(list(getattr(self.instance_ingester.instance,'legal-deposit'))[0], 'DL 80-0-1524') self.assert_(TEST_REDIS.sismember("identifiers:legal-deposit:invalid", "M444120-2006"))