def test_empty_grouped(self): empty_group = [] groups = grouped(empty_group, self.number_in_group) self.assertEquals(len(groups), 0)
def test_grouped(self): groups = grouped(self.group, self.number_in_group) self.assertEquals(len(groups), 2)