mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update test_search.py
This commit is contained in:
parent
f8c6ca2797
commit
5db14e8c4d
1 changed files with 1 additions and 3 deletions
|
|
@ -43,11 +43,9 @@ class TestSearch(EvenniaTest):
|
|||
self.assertEqual(script.key, found[0].key, errors)
|
||||
|
||||
def test_search_script_attribute_wrong(self):
|
||||
"""Check that a script can be found by its attributes."""
|
||||
"""Check that a script cannot be found by wrong value of its attributes."""
|
||||
script, errors = DefaultScript.create("a-script")
|
||||
script.db.an_attribute = "some value"
|
||||
found = search_script_attribute(key="an_attribute", value="wrong value")
|
||||
self.assertEqual(len(found), 1, errors)
|
||||
self.assertEqual(script.key, found[0].key, errors)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue