コード例 #1
0
ファイル: test_validator.py プロジェクト: ouvigna/rome
 def test_custom_inexistent_error(self):
     validator = SUTValidator(errors={'foo_error': 'Foo Error'})
     assert_equals({'test_error': 'Test Error'}, validator.get_list_errors())
コード例 #2
0
ファイル: test_validator.py プロジェクト: ouvigna/rome
 def test_custom_errors(self):
     ERROR_TEXT = 'Test Custom Error'
     validator = SUTValidator(errors={'test_error': ERROR_TEXT})
     assert_equals({'test_error': ERROR_TEXT}, validator.get_list_errors())
コード例 #3
0
ファイル: test_validator.py プロジェクト: ouvigna/rome
 def test_default_errors(self):
     validator = SUTValidator()
     assert_equals({'test_error': 'Test Error'}, validator.get_list_errors())
コード例 #4
0
 def test_custom_inexistent_error(self):
     validator = SUTValidator(errors={'foo_error': 'Foo Error'})
     assert_equals({'test_error': 'Test Error'},
                   validator.get_list_errors())
コード例 #5
0
 def test_custom_errors(self):
     ERROR_TEXT = 'Test Custom Error'
     validator = SUTValidator(errors={'test_error': ERROR_TEXT})
     assert_equals({'test_error': ERROR_TEXT}, validator.get_list_errors())
コード例 #6
0
 def test_default_errors(self):
     validator = SUTValidator()
     assert_equals({'test_error': 'Test Error'},
                   validator.get_list_errors())