mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
improve test
This commit is contained in:
parent
0815a9f84f
commit
98ed6ac2c5
1 changed files with 3 additions and 2 deletions
|
@ -1678,13 +1678,14 @@ class BudgetTestCase(IhatemoneyTestCase):
|
|||
)
|
||||
self.assertTrue(session["raclette"])
|
||||
# New behavior
|
||||
self.assertEquals(session["projects"].__class__, dict)
|
||||
self.assertIsInstance(session["projects"], dict)
|
||||
# Now, go back to the past
|
||||
with c.session_transaction() as sess:
|
||||
sess["projects"] = [("raclette", "raclette")]
|
||||
# It should convert entry to dict
|
||||
c.get("/")
|
||||
self.assertEquals(session["projects"].__class__, dict)
|
||||
self.assertIsInstance(session["projects"], dict)
|
||||
self.assertIn("raclette", session["projects"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue