mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
tests/test_utils: Update behaviour of test
As part of commit #b3de85 porting to WA3, the behaviour of Enums changed so that the attribute to be fetched is converted to lower case before the lookup occurs. Due to the fact that 'names' is a predefined attribute of the Enum class this clashes and will return the full list of names instead of the individual entry. Update the test to use another non reserved entry.
This commit is contained in:
parent
1648a58c11
commit
107fdc203c
@ -113,8 +113,8 @@ class TestEnumLevel(TestCase):
|
||||
e = enum(['NAMES', 'one', 'two'])
|
||||
assert_in('names', e.levels)
|
||||
assert_list_equal(e.names, ['names', 'one', 'two'])
|
||||
assert_equal(e.NAMES, 'names')
|
||||
result = not (e.NAMES != 'names')
|
||||
assert_equal(e.ONE, 'one')
|
||||
result = not (e.ONE != 'one')
|
||||
assert_true(result)
|
||||
|
||||
def test_enum_behavior(self):
|
||||
|
Loading…
Reference in New Issue
Block a user