summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 92c62295f..b80c91c26 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -190,6 +190,14 @@ class UtilsTest(TestCase):
}
res = update_data(data_1, data_2)
self.assertEqual(res, expected)
+ data_1 = {"old": {"youpi": {"plouf": "tralalalère"}}}
+ data_2 = {"tsoin_tsoin": "hop", "old": {"youpi": {"plouf": "nop"}}}
+ expected = {
+ "tsoin_tsoin": "hop",
+ "old": {"youpi": {"plouf": "nop"}}
+ }
+ res = update_data(data_1, data_2)
+ self.assertEqual(res, expected)
def test_move_dict_data(self):
data = {"old": {"daté": "value"}}