@@ -0,0 +1,382 @@
+from inspect import isgenerator%0Afrom .group_by import group_by%0A%0A%0Adef test_group_by():%0A    assert isgenerator(group_by(%5B1, 2, 3%5D, lambda s: s %25 2 == 0))%0A    assert dict(group_by(%5B'1', '2', '3'%5D, lambda s: s.isdigit())) == %7BTrue: %5B'1', '2', '3'%5D%7D%0A    assert dict(group_by(%0A        %5B%7B'a': 1%7D, %7B'a': 2%7D, %7B'a': 1%7D%5D,%0A        lambda i: i%5B'a'%5D)) == %7B1: %5B%7B'a': 1%7D, %7B'a': 1%7D%5D, 2: %5B%7B'a': 2%7D%5D%7D%0A

add test for group_by