Deleted
Added
test_configuration.py (1596:b7e2d4d92624) | test_configuration.py (1635:97afbb6c5a15) |
---|---|
1import pytest 2 | 1import pytest 2 |
3from unit.control import TestControl | |
4from conftest import skip_alert | 3from conftest import skip_alert |
4from unit.control import TestControl |
|
5 6 7class TestConfiguration(TestControl): 8 prerequisites = {'modules': {'python': 'any'}} 9 10 def test_json_empty(self): 11 assert 'error' in self.conf(''), 'empty' 12 13 def test_json_leading_zero(self): 14 assert 'error' in self.conf('00'), 'leading zero' 15 16 def test_json_unicode(self): 17 assert 'success' in self.conf( | 5 6 7class TestConfiguration(TestControl): 8 prerequisites = {'modules': {'python': 'any'}} 9 10 def test_json_empty(self): 11 assert 'error' in self.conf(''), 'empty' 12 13 def test_json_leading_zero(self): 14 assert 'error' in self.conf('00'), 'leading zero' 15 16 def test_json_unicode(self): 17 assert 'success' in self.conf( |
18 b""" | 18 u""" |
19 { 20 "ap\u0070": { 21 "type": "\u0070ython", 22 "processes": { "spare": 0 }, 23 "path": "\u002Fapp", 24 "module": "wsgi" 25 } 26 } --- 21 unchanged lines hidden (view full) --- 48 } 49 }, 50 'applications', 51 ), 'unicode 2' 52 53 assert 'приложение' in self.conf_get('applications'), 'unicode 2 get' 54 55 def test_json_unicode_number(self): | 19 { 20 "ap\u0070": { 21 "type": "\u0070ython", 22 "processes": { "spare": 0 }, 23 "path": "\u002Fapp", 24 "module": "wsgi" 25 } 26 } --- 21 unchanged lines hidden (view full) --- 48 } 49 }, 50 'applications', 51 ), 'unicode 2' 52 53 assert 'приложение' in self.conf_get('applications'), 'unicode 2 get' 54 55 def test_json_unicode_number(self): |
56 assert 'error' in self.conf( 57 b""" | 56 assert 'success' in self.conf( 57 u""" |
58 { 59 "app": { 60 "type": "python", 61 "processes": { "spare": \u0030 }, 62 "path": "/app", 63 "module": "wsgi" 64 } 65 } --- 290 unchanged lines hidden --- | 58 { 59 "app": { 60 "type": "python", 61 "processes": { "spare": \u0030 }, 62 "path": "/app", 63 "module": "wsgi" 64 } 65 } --- 290 unchanged lines hidden --- |