def test_each(self):
    original = ['foo', 'bar', 'baz']
    c = Collection(original)
    result = []
    c.each((lambda x: result.append(x)))
    self.assertEqual(result, original)
    self.assertEqual(original, c.all())
def test_each(self):
    original = ['foo', 'bar', 'baz']
    c = Collection(original)
    result = []
    c.each((lambda x: result.append(x)))
    self.assertEqual(result, original)
    self.assertEqual(original, c.all())