コード例 #1
0
ファイル: test_api.py プロジェクト: Otacon/python-valve
 def test_illegal(self):
     with pytest.raises(NameError):
         interface._ensure_identifier("12345!£$%^&*()678909")
コード例 #2
0
ファイル: test_api.py プロジェクト: Otacon/python-valve
 def test_strip_bad_start(self):
     assert interface._ensure_identifier("123testing123") == "testing123"
コード例 #3
0
ファイル: test_api.py プロジェクト: Otacon/python-valve
 def test_strip_bad_chars(self):
     assert interface._ensure_identifier("Upsidé;Down!") == "UpsidDown"
コード例 #4
0
ファイル: test_api.py プロジェクト: 404d/python-valve
 def test_illegal(self):
     with pytest.raises(NameError):
         interface._ensure_identifier("12345!£$%^&*()678909")
コード例 #5
0
ファイル: test_api.py プロジェクト: 404d/python-valve
 def test_strip_bad_start(self):
     assert interface._ensure_identifier("123testing123") == "testing123"
コード例 #6
0
ファイル: test_api.py プロジェクト: 404d/python-valve
 def test_strip_bad_chars(self):
     assert interface._ensure_identifier("Upsidé;Down!") == "UpsidDown"