fix unit tests for listHosts
This commit is contained in:
parent
f6f2984e18
commit
208c6433d7
1 changed files with 3 additions and 3 deletions
|
|
@ -71,8 +71,8 @@ class TestListHosts(unittest.TestCase):
|
|||
query = self.queries[0]
|
||||
self.assertEqual(query.tables, ['host_config'])
|
||||
self.assertEqual(query.joins, ['host ON host.id = host_config.host_id'])
|
||||
self.assertEqual(query.clauses, [r"""(arches ~ E'\\mx86_64\\M')""",
|
||||
'host_config.active IS TRUE'])
|
||||
self.assertEqual(query.clauses, ['arches ~ %(archPattern)s',
|
||||
'host_config.active IS TRUE'])
|
||||
|
||||
def test_list_hosts_multi_arch(self):
|
||||
self.exports.listHosts(arches=['x86_64', 's390'])
|
||||
|
|
@ -82,7 +82,7 @@ class TestListHosts(unittest.TestCase):
|
|||
self.assertEqual(query.tables, ['host_config'])
|
||||
self.assertEqual(query.joins, ['host ON host.id = host_config.host_id'])
|
||||
self.assertEqual(query.clauses, [
|
||||
r"""(arches ~ E'\\mx86_64\\M' OR arches ~ E'\\ms390\\M')""",
|
||||
'arches ~ %(archPattern)s',
|
||||
'host_config.active IS TRUE'])
|
||||
|
||||
def test_list_hosts_bad_arch(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue