# Path: smarkets/string.py
# def n(string):
#     n_docstring
#     return string if isinstance(string, str) else string.decode('utf-8')
# 
# @decorator.decorator
# def native_str_result(function, *args, **kwargs):
#     '''
#     '''
#     return n(function(*args, **kwargs))


from nose.tools import eq_
from six import PY3
from smarkets.string import n, native_str_result
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals




class TestString(object):
    binary_version = 'ąę'.encode('utf-8')
    unicode_version = 'ąę'
    inputs = (binary_version, unicode_version)
    output = unicode_version if PY3 else binary_version

    def test_n(self):
        for input in self.inputs:
            yield self.check_n, input, self.output

    def check_n(self, input, output):

# Path: smarkets/string.py
# def n(string):
#     n_docstring
#     return string if isinstance(string, str) else string.decode('utf-8')
# 
# @decorator.decorator
# def native_str_result(function, *args, **kwargs):
#     '''
#     '''
#     return n(function(*args, **kwargs))


# Path: smarkets/tests/string.py
from nose.tools import eq_
from six import PY3
from smarkets.string import n, native_str_result

# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals




class TestString(object):
    binary_version = 'ąę'.encode('utf-8')
    unicode_version = 'ąę'
    inputs = (binary_version, unicode_version)
    output = unicode_version if PY3 else binary_version

    def test_n(self):
        for input in self.inputs:
            yield self.check_n, input, self.output

    def check_n(self, input, output):

        eq_(n(input), output)