mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Use assertCountEqual for better handling db variations
This commit is contained in:
parent
c051d15f5c
commit
e7efffd629
1 changed files with 4 additions and 4 deletions
|
|
@ -630,10 +630,10 @@ class TestPrototypeStorage(EvenniaTest):
|
|||
|
||||
# partial match
|
||||
with mock.patch("evennia.prototypes.prototypes._MODULE_PROTOTYPES", {}):
|
||||
self.assertEqual(
|
||||
set(protlib.search_prototype("prot")), set([prot1b, prot2, prot3]))
|
||||
self.assertEqual(
|
||||
set(protlib.search_prototype(tags="foo1")), set([prot1b, prot2, prot3]))
|
||||
self.assertCountEqual(
|
||||
protlib.search_prototype("prot"), [prot1b, prot2, prot3])
|
||||
self.assertCountEqual(
|
||||
protlib.search_prototype(tags="foo1"), [prot1b, prot2, prot3])
|
||||
|
||||
self.assertTrue(str(str(protlib.list_prototypes(self.char1))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue