newkeywords = keywords.copy()
newkeywords.update(fkeywords)
return func(*(args + fargs), **newkeywords)
- newfunc.func = func
- newfunc.args = args
- newfunc.keywords = keywords
return newfunc
-class CallableTest(TestBase, AssertsExecutionResults):
+class CallableTest(TestBase):
def setUpAll(self):
global meta
meta = MetaData(testing.db)
thing_table = Table('thing', meta,
Column('name', ucode, primary_key=True)
)
+ assert isinstance(thing_table.c.name.type, Unicode)
+ thing_table.create()
def test_callable_as_kwarg(self):
ucode = partial(Unicode, assert_unicode=None)
thang_table = Table('thang', meta,
Column('name', type_=ucode, primary_key=True)
)
+ assert isinstance(thang_table.c.name.type, Unicode)
+ thang_table.create()
if __name__ == "__main__":
testenv.main()