def test_get_dat_acc_neg_source(self): '''COMMENT''' dat_acc = DatabaseAccession('PubMed citation', '214717', 'PubChem') self.assertNotIn(dat_acc, parsers.get_database_accessions(60261))
def test_get_dat_acc_neg_acc_no(self): '''COMMENT''' dat_acc = DatabaseAccession('PubMed citation', '123456', 'SUBMITTER') self.assertNotIn(dat_acc, parsers.get_database_accessions(60261))
def test_get_dat_acc_neg_type(self): '''COMMENT''' dat_acc = DatabaseAccession('ChEBI', '214717', 'SUBMITTER') self.assertNotIn(dat_acc, parsers.get_database_accessions(60261))
def test_get_dat_acc(self): '''COMMENT''' dat_acc = DatabaseAccession('PubMed citation', '214717', 'SUBMITTER') self.assertIn(dat_acc, parsers.get_database_accessions(60261))
def test_get_db_acc_secondary(self): '''COMMENT''' dat_acc = DatabaseAccession('MetaCyc accession', 'WATER', 'MetaCyc') self.assertTrue(dat_acc in self.__secondary.get_database_accessions())
def test_get_db_acc_existing(self): '''COMMENT''' dat_acc = DatabaseAccession('MetaCyc accession', 'D-Glucose', 'MetaCyc') self.assertTrue(dat_acc in self.__existing.get_database_accessions())