コード例 #1
0
 def test_role_exists_empty(self):
     ctx = self._make_context()
     v = validators.role_exists('', ctx)
コード例 #2
0
ファイル: test_validators.py プロジェクト: 6779660/ckan
 def test_role_exists_empty(self):
     ctx = self._make_context()
     v = validators.role_exists('', ctx)
コード例 #3
0
ファイル: test_validators.py プロジェクト: wrinklenose/ckan
def test_role_exists_empty():
    with pytest.raises(df.Invalid):
        validators.role_exists("", _make_context())