Skip to content

Commit

Permalink
Added test for preprocessing with not Latin value #6 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
uralbash committed May 4, 2016
1 parent b521207 commit 11fe701
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run_tests(self):

setup(
name='ps_alchemy',
version='0.0.6',
version='0.0.7.dev0',
url='http://github.com/sacrud/ps_alchemy/',
author='Svintsov Dmitry',
author_email='sacrud@uralbash.ru',
Expand Down
8 changes: 7 additions & 1 deletion tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def test_preprocessing_value():

Base = declarative_base()
Base = declarative_base() # noqa

class User(Base):
__tablename__ = 'users'
Expand All @@ -34,3 +34,9 @@ class User(Base):
)
value = {'foo': 'bar'}
assert preprocessing_value("foo", value, form.schema) == value

assert preprocessing_value("foo", "говядо", form.schema) == "говядо"
assert preprocessing_value("foo", u"говядо", form.schema) == "говядо"
assert preprocessing_value(
"foo",
u'\u0433\u043e\u0432\u044f\u0434\u043e', form.schema) == "говядо"

0 comments on commit 11fe701

Please sign in to comment.