Skip to content

Commit eea2271

Browse files
author
Greg Turnquist
committed
Created tests that expose unicode errors.
1 parent 0b06b26 commit eea2271

13 files changed

Lines changed: 199 additions & 0 deletions

test/springpythontest/all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
from springpythontest.securityUserDetailsTestCases import *
1515
from springpythontest.securityVoteTestCases import *
1616
from springpythontest.securityWebTestCases import *
17+
from springpythontest.unicodeTestCases import *
1718

test/springpythontest/checkin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
from springpythontest.securityVoteTestCases import *
1313
from springpythontest.securityWebTestCases import *
1414
from springpythontest.util_test_cases import *
15+
from springpythontest.unicodeTestCases import *
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects/1.1"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects/1.1
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.1.xsd">
6+
7+
<object id="string_holder_1" class="springpythontest.support.testSupportClasses.StringHolder">
8+
<property name="str" value="العربية"></property>
9+
</object>
10+
11+
</objects>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects/1.1"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects/1.1
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.1.xsd">
6+
7+
<object id="foo" class="springpythontest.support.testSupportClasses.StringHolder">
8+
<property name="العربية">
9+
<value>foo</value>
10+
</property>
11+
</object>
12+
13+
14+
</objects>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects/1.1"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects/1.1
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.1.xsd">
6+
7+
<object id="string_holder_2" class="springpythontest.support.testSupportClasses.StringHolder">
8+
<property name="str">
9+
<value>العربية</value>
10+
</property>
11+
</object>
12+
13+
</objects>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects/1.1"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects/1.1
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.1.xsd">
6+
7+
<object id="العربية" class="springpythontest.support.testSupportClasses.StringHolder">
8+
<property name="str">
9+
<value>foo</value>
10+
</property>
11+
</object>
12+
13+
14+
</objects>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd">
6+
7+
<object id="user_details_service" class="springpython.security.userdetails.InMemoryUserDetailsService">
8+
<property name="user_dict">
9+
<dict>
10+
<entry>
11+
<key><value>العربية</value></key>
12+
<value>foo</value>
13+
</entry>
14+
</dict>
15+
</property>
16+
</object>
17+
18+
19+
</objects>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd">
6+
7+
<object id="user_details_service" class="springpython.security.userdetails.InMemoryUserDetailsService">
8+
<property name="user_dict">
9+
<dict>
10+
<entry>
11+
<key><value>foo</value></key>
12+
<value><tuple>
13+
<value>العربية</value>
14+
</tuple></value>
15+
</entry>
16+
</dict>
17+
</property>
18+
</object>
19+
20+
</objects>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd">
6+
7+
<object id="user_details_service2" class="springpython.security.userdetails.InMemoryUserDetailsService">
8+
<property name="user_dict">
9+
<list>
10+
<set>
11+
<value>العربية</value>
12+
</set>
13+
</list>
14+
</property>
15+
</object>
16+
17+
</objects>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<objects xmlns="http://www.springframework.org/springpython/schema/objects"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects
5+
http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd">
6+
7+
<object id="user_details_service2" class="springpython.security.userdetails.InMemoryUserDetailsService">
8+
<property name="user_dict">
9+
<list>
10+
<frozenset>
11+
<value>العربية</value>
12+
</frozenset>
13+
</list>
14+
</property>
15+
</object>
16+
17+
</objects>

0 commit comments

Comments
 (0)