File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88basedir = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
99sys .path .append (basedir )
1010
11- ustr = u 'Тест'
11+ ustr = 'Тест'
1212foo = 'foo'
1313from web_pdb import set_trace ; set_trace ()
1414bar = 'bar'
1515ham = 'spam'
16- name = u 'Монти'
16+ name = 'Монти'
1717
1818
1919def func (spam ):
Original file line number Diff line number Diff line change 2525import time
2626from pathlib import Path
2727from subprocess import Popen
28- from unittest import TestCase , main , skipIf
28+ from unittest import TestCase , main
2929
3030from selenium import webdriver
3131from selenium .webdriver .common .by import By
3737IS_PY_310 = sys .version_info [:2 ] >= (3 , 10 )
3838IS_PY_313 = sys .version_info [:2 ] >= (3 , 13 )
3939
40+
4041class SeleniumTestCase (TestCase ):
4142 @classmethod
4243 def setUpClass (cls ):
@@ -151,18 +152,18 @@ def test_5_unicode_literal(self):
151152 self .stdin .send_keys ('n' )
152153 self .send_btn .click ()
153154 time .sleep (1 )
154- self .assertIn ('-> name = u \' Монти\' ' , self .stdout_tag .text )
155+ self .assertIn ('-> name = \' Монти\' ' , self .stdout_tag .text )
155156
156157 def test_6_entering_unicode_string (self ):
157158 """
158159 Test for entering unicode literal via console
159160 """
160161 self .stdin .clear ()
161- self .stdin .send_keys ('p u \' python - питон\' ' )
162+ self .stdin .send_keys ('p \' python - питон\' ' )
162163 self .send_btn .click ()
163164 time .sleep (1 )
164165 stdout_tag = self .browser .find_element (By .ID , 'stdout' )
165- self .assertIn ('u \' python - питон\' ' , stdout_tag .text )
166+ self .assertIn ('\' python - питон\' ' , stdout_tag .text )
166167
167168 def test_7_local_vars (self ):
168169 """
You can’t perform that action at this time.
0 commit comments