From d6de51500dfc0acf44579297b78d4e5ae9c4d68f Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sun, 23 Nov 2014 19:00:08 -0200 Subject: [PATCH] Refactor test (minor): use namedtuple for stub --- sigi/test_testutils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sigi/test_testutils.py b/sigi/test_testutils.py index 0ec9969..7b75ec4 100644 --- a/sigi/test_testutils.py +++ b/sigi/test_testutils.py @@ -1,10 +1,9 @@ -from sigi.testutils import SigiDataFixture +from collections import namedtuple +from sigi.testutils import SigiDataFixture -class FieldStub(object): - def __init__(self, max_length): - self.max_length = max_length +FieldStub = namedtuple('FieldStub', ['max_length']) def test_sigidatafixture():