Fix unit test failures caused by type mismatch

Currently unit tests are failing because of the following type mismatch
detected.

testtools.matchers._impl.MismatchError: '{'k2', 'k1'}' is not an
instance of list

This change fixes that error.

Change-Id: I8ecedd341ba45d1919c9073dda8b2fc390306a52
This commit is contained in:
Takashi Kajinami 2021-07-19 09:31:54 +09:00
parent 22e822dde2
commit b2d6de569c
1 changed files with 1 additions and 1 deletions

View File

@ -1402,7 +1402,7 @@ class DataFlowTest(test_base.BaseTest):
res = expr.evaluate('<% $.keys() %>', ctx)
self.assertIsNotNone(res)
self.assertIsInstance(res, list)
self.assertIsInstance(res, set)
self.assertEqual(2, len(res))
self.assertIn('k1', res)
self.assertIn('k2', res)