Commit b55b8862 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[test] Use assertFalse instead of deprecated failIf

parent a996b25c4564
...@@ -37,7 +37,7 @@ class HooksTC(testlib.CubicWebTC): ...@@ -37,7 +37,7 @@ class HooksTC(testlib.CubicWebTC):
# ensure the external uri has been replaced by the concept and deleted # ensure the external uri has been replaced by the concept and deleted
concept.cw_clear_all_caches() concept.cw_clear_all_caches()
self.assertEqual(concept.exact_match[0].eid, new_concept.eid) self.assertEqual(concept.exact_match[0].eid, new_concept.eid)
self.failIf(cnx.execute('Any X WHERE X eid %(x)s', {'x': exturi.eid})) self.assertFalse(cnx.execute('Any X WHERE X eid %(x)s', {'x': exturi.eid}))
def test_skos_source(self): def test_skos_source(self):
with self.admin_access.repo_cnx() as cnx: with self.admin_access.repo_cnx() as cnx:
......
...@@ -98,7 +98,7 @@ class SKOSXMLImportTC(testlib.CubicWebTC): ...@@ -98,7 +98,7 @@ class SKOSXMLImportTC(testlib.CubicWebTC):
'ark:/67717/T1-503#preferred_label8c179857731ea1dbfc9d152ba4338eda') 'ark:/67717/T1-503#preferred_label8c179857731ea1dbfc9d152ba4338eda')
self.assertEqual(label.cw_source[0].name, source_name) self.assertEqual(label.cw_source[0].name, source_name)
self.assertEqual(label.label, u'communications') self.assertEqual(label.label, u'communications')
self.failIf(cnx.execute('Any L WHERE NOT EXISTS(L label_of X)')) self.assertFalse(cnx.execute('Any L WHERE NOT EXISTS(L label_of X)'))
# exact / close match # exact / close match
concept = cnx.find('Concept', cwuri='http://data.culture.fr/thesaurus/resource/' concept = cnx.find('Concept', cwuri='http://data.culture.fr/thesaurus/resource/'
'ark:/67717/T1-246').one() 'ark:/67717/T1-246').one()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment