Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c32fbe commit 22923f9Copy full SHA for 22923f9
1 file changed
src/bidi/tests.py
@@ -65,6 +65,16 @@ def test_implict_with_upper_is_rtl(self):
65
for storage, display in tests:
66
self.assertEqual(get_display(storage, upper_is_rtl=True), display)
67
68
+ def test_override_base_dir(self):
69
+ """Tests overriding the base paragraph direction"""
70
+
71
+ # normaly the display should be :MOLAHS be since we're overriding the
72
+ # base dir the colon should be at the end of the display
73
+ storage = u'SHALOM:'
74
+ display = u'MOLAHS:'
75
76
+ self.assertEqual(get_display(storage, upper_is_rtl=True, base_dir='L'), display)
77
78
def test_explicit_with_upper_is_rtl(self):
79
"""Explicit tests"""
80
tests = (
0 commit comments