def test_container_value_return_param(self): container = foo.get_simple_list() count = 0 for i, simple in enumerate(container): self.assertEqual(simple.xpto, i) count += 1 self.assertEqual(count, 10) #self.assertEqual(len(container), 10) rv = foo.set_simple_list(container) self.assertEqual(rv, sum(range(10)))