Merge branch 'master' into develop
This commit is contained in:
commit
e77bf5ce25
2 changed files with 6 additions and 0 deletions
|
|
@ -516,6 +516,10 @@ def search_prototype(key=None, tags=None, require_single=False, return_iterators
|
||||||
be found as a match.
|
be found as a match.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
# prototype keys are always in lowecase
|
||||||
|
if key:
|
||||||
|
key = key.lower()
|
||||||
|
|
||||||
# search module prototypes
|
# search module prototypes
|
||||||
|
|
||||||
mod_matches = {}
|
mod_matches = {}
|
||||||
|
|
|
||||||
|
|
@ -335,6 +335,8 @@ class TestProtLib(EvenniaTest):
|
||||||
self.assertTrue(match)
|
self.assertTrue(match)
|
||||||
match = protlib.search_prototype(self.prot["prototype_key"])
|
match = protlib.search_prototype(self.prot["prototype_key"])
|
||||||
self.assertEqual(match, [self.prot])
|
self.assertEqual(match, [self.prot])
|
||||||
|
match = protlib.search_prototype(self.prot["prototype_key"].upper())
|
||||||
|
self.assertEqual(match, [self.prot])
|
||||||
|
|
||||||
|
|
||||||
class TestProtFuncs(EvenniaTest):
|
class TestProtFuncs(EvenniaTest):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue