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):
# ensure the external uri has been replaced by the concept and deleted
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):
with self.admin_access.repo_cnx() as cnx:
......@@ -98,7 +98,7 @@ class SKOSXMLImportTC(testlib.CubicWebTC):
self.assertEqual(label.cw_source[0].name, source_name)
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
concept = cnx.find('Concept', cwuri=''
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