Correct argument types in name sort tests

The "names" argument is supposed to be a list, not a
single string.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
Doug Hellmann 2013-05-19 12:22:48 -04:00
parent 8f111e0235
commit abf23bc0e9

View File

@ -43,7 +43,7 @@ def test_extensions_listed_in_name_order():
# fail
em = named.NamedExtensionManager(
'stevedore.test.extension',
names='t1 t2',
names=['t1', 't2'],
name_order=True
)
actual = em.names()
@ -51,7 +51,7 @@ def test_extensions_listed_in_name_order():
em = named.NamedExtensionManager(
'stevedore.test.extension',
names='t2 t1',
names=['t2', 't1'],
name_order=True
)
actual = em.names()