From 585b8c7ab6b98dcc99a79f186c8cccae56a9d932 Mon Sep 17 00:00:00 2001 From: Aaron Schumacher Date: Fri, 5 Jun 2015 23:09:33 -0400 Subject: [PATCH] test new group goes the right way The order of items in links shouldn't really matter, but it currently does at least for the internal tuple way of storing everything. This is probably fine. (?) --- mergic/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mergic/test.py b/mergic/test.py index f057cb9..c4042c8 100644 --- a/mergic/test.py +++ b/mergic/test.py @@ -29,3 +29,8 @@ def test_joins_to_same_thing(self): group_of = {1: (1,), 2: (2,)} mergic._link_items(group_of, [(1, 2)]) self.assertIs(group_of[1], group_of[2]) + + def test_joins_to_correct_tuple(self): + group_of = {1: (1,), 2: (2,)} + mergic._link_items(group_of, [(1, 2)]) + self.assertEqual(set(group_of[1]), set((1, 2)))