Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22923f9

Browse files
author
Meir Kriheli
committed
Add a test for overriding base_dir
1 parent 7c32fbe commit 22923f9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/bidi/tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ def test_implict_with_upper_is_rtl(self):
6565
for storage, display in tests:
6666
self.assertEqual(get_display(storage, upper_is_rtl=True), display)
6767

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+
6878
def test_explicit_with_upper_is_rtl(self):
6979
"""Explicit tests"""
7080
tests = (

0 commit comments

Comments
 (0)