<s> from tests . modularinput . modularinput_testlib import unittest , data_open <EOL> from splunklib . modularinput . validation_definition import ValidationDefinition <EOL> class ValidationDefinitionTestCase ( unittest . TestCase ) : <EOL> def test_validation_definition_parse ( self ) : <EOL> """<STR_LIT>""" <EOL> found = ValidationDefinition . parse ( data_open ( "<STR_LIT>" ) ) <EOL> expected = ValidationDefinition ( ) <EOL> expected . metadata = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:name>" : "<STR_LIT>" <EOL> } <EOL> expected . parameters = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT:0>" , <EOL> "<STR_LIT:index>" : "<STR_LIT:default>" , <EOL> "<STR_LIT>" : [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> "<STR_LIT>" : [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> } <EOL> self . assertEqual ( expected , found ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
