diff --git a/tests/test_korean.py b/tests/test_korean.py new file mode 100644 index 0000000..2aa8c73 --- /dev/null +++ b/tests/test_korean.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +import pytest +import pysnooper + +@pysnooper.snoop() +def func(x): + return x + 1 +def test_korean(x): + assert func(x) != x+1, '성공!' +test_korean(0) diff --git a/tests/test_nesting.py b/tests/test_nesting.py new file mode 100644 index 0000000..cc7dbcc --- /dev/null +++ b/tests/test_nesting.py @@ -0,0 +1,14 @@ +import time +import pysnooper + +snoop = pysnooper.snoop() + +def test(): + with snoop: + a = 10 + with snoop: + time.sleep(1.0) + a = 20 + time.sleep(1.0) + +test()