

def test_should_return_a_list_of_encoded_models(self):
    users = [User(), User()]
    self.encoder = encoders.List(encoders.Model())
    result = self.encoder(users)
    expect(result).to(equal([users[0].encode(), users[1].encode()]))

dataset/ETHPy150Open jaimegildesagredo/booby/tests/unit/encoders/test_list.py TestEncode.test_should_return_a_list_of_encoded_models/original