Skip to content

Commit

Permalink
test: replace deprecated aliases
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Styk <[email protected]>
  • Loading branch information
StykMartin committed Oct 29, 2024
1 parent d7fb82c commit 09258b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/bkr/common/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def assert_valid(self, xml):

def assert_not_valid(self, xml, error_message):
schema = lxml.etree.RelaxNG(self.schema_doc)
self.assert_(not schema.validate(lxml.etree.fromstring(xml)))
self.assertTrue(not schema.validate(lxml.etree.fromstring(xml)))
messages = [str(e.message) for e in schema.error_log]
self.assert_(error_message in messages, messages)
self.assertTrue(error_message in messages, messages)

class TaskSchemaTest(SchemaTestBase):

Expand Down

0 comments on commit 09258b3

Please sign in to comment.