Advertisement
Kovitikus

Weird output from dictionary equal assertion test

Nov 27th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. (evenv) D:\muddev\hecate>evennia test
  2.  
  3. TESTING: Using Evennia's default settings file (evennia.settings_default).
  4. (use 'evennia test --settings settings.py .' to run only your custom game tests)
  5.  
  6. Creating test database for alias 'default'...
  7. System check identified no issues (0 silenced).
  8. F.
  9. ======================================================================
  10. FAIL: test_equipment_generation (hecate.world.tests.TestEquipmentHandler)
  11. ----------------------------------------------------------------------
  12. Traceback (most recent call last):
  13. File "D:\muddev\hecate\world\tests.py", line 23, in test_equipment_generation
  14. self.assertDictEqual(equip_dic, actual_dic)
  15. AssertionError: {'hea[28 chars]ulder': None, 'chest': None, 'arms': None, 'ha[102 chars] Bag} != {'hea[28 chars]ulders': None, 'chest': None, 'arms': None, 'h[126 chars] bag}
  16. {'arms': None,
  17. - 'bag': Basic Bag,
  18. 'calves': None,
  19. 'chest': None,
  20. 'feet': None,
  21. 'fingers': None,
  22. 'hands': None,
  23. 'head': None,
  24. + 'inventory_container': a worn black bag,
  25. 'neck': None,
  26. - 'shoulder': None,
  27. + 'shoulders': None,
  28. ? +
  29.  
  30. 'thighs': None,
  31. 'waist': None}
  32.  
  33. ----------------------------------------------------------------------
  34. Ran 2 tests in 1.152s
  35.  
  36. FAILED (failures=1)
  37. Destroying test database for alias 'default'...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement