def test_property_query3(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format(db='public', bibcode='2018LPI....49.2177B')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['ESOURCE', 'TOC'])
def test_property_query1(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format(db='public', bibcode='2004MNRAS.354L..31M')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['ASSOCIATED', 'ESOURCE', 'INSPIRE'])
def test_property_query2(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format(db='public', bibcode='1891opvl.book.....N')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['LIBRARYCATALOG'])
def test_esource_query3(self): with db_con.cursor() as cur: cur.execute(self.config['ESOURCE_QUERY'].format(db='public', bibcode='2014MNRAS.444.1497S')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['EPRINT_HTML', 'EPRINT_PDF', 'PUB_PDF'])
def test_property_query2(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format( db='public', bibcode='1891opvl.book.....N')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['LIBRARYCATALOG'])
def test_property_query1(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format( db='public', bibcode='2004MNRAS.354L..31M')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['ASSOCIATED', 'ESOURCE', 'INSPIRE'])
def test_esource_query3(self): with db_con.cursor() as cur: cur.execute(self.config['ESOURCE_QUERY'].format( db='public', bibcode='2014MNRAS.444.1497S')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['EPRINT_HTML', 'EPRINT_PDF', 'PUB_PDF'])
def test_property_query3(self): with db_con.cursor() as cur: cur.execute(self.config['PROPERTY_QUERY'].format( db='public', bibcode='2018LPI....49.2177B')) self.assertEqual(fetch_data_link_elements(cur.fetchone()), ['ESOURCE', 'TOC'])