# -*- coding: utf-8 -*-


from dp_tornado.engine.model import Model as dpModel


class TestingModel(dpModel):
    def add(self, a, b):
        """
            .. test::
                expect(int=10, args=(1, 9))
                expect(
                    int=10,
                    kwargs={
                        'a': 1,
                        'b': 9
                    })
                !expect(int=11, args=(1, 9))
                !expect(str='10', args=(1, 9))
                !expect(bool=False, args=(1, 9))
        """
        return a + b

    def minus(self, a, b):
        """
            .. test::
                expect(int=10, args=(11, 1))
                expect(
                    int=10,
                    kwargs={
                        'a': 11,
                        'b': 1
                    })
                !expect(int=11, args=(11, 1))
                !expect(str='10', args=(11, 1))
                !expect(bool=False, args=(1, 9))
        """
        return a - b

@@ -998,8 +998,286 @@
 n a - b%0A
+%0A    def unicode(self, a):%0A        %22%22%22%0A            .. test::%0A                expect(str='%ED%95%9C%EA%B8%80', args=('%ED%95%9C%EA%B8%80', ))%0A                expect(%0A                    int='%ED%95%9C%EA%B8%80',%0A                    kwargs=%7B%0A                        'a': '%ED%95%9C%EA%B8%80'%0A                    %7D)%0A        %22%22%22%0A        return a%0A

add unicode testing test case.