#NEWLINE# @ staticmethod #NEWLINE# def check_components( components ) : #NEWLINE# #INDENT# assert isinstance ( components , list ) #NEWLINE# assert ( len ( components ) > 0 ) #NEWLINE# for component_rpm in components : #NEWLINE# #INDENT# assert isinstance ( component_rpm , dict ) #NEWLINE# assert ( set ( component_rpm . keys ( ) ) == set ( [ 'type' , 'name' , 'version' , 'release' , 'epoch' , 'arch' , 'sigmd5' , 'signature' ] ) ) #NEWLINE# assert ( component_rpm [ 'type' ] == 'rpm' ) #NEWLINE# assert component_rpm [ 'name' ] #NEWLINE# assert is_string_type ( component_rpm [ 'name' ] ) #NEWLINE# assert ( component_rpm [ 'name' ] != 'gpg-pubkey' ) #NEWLINE# assert component_rpm [ 'version' ] #NEWLINE# assert is_string_type ( component_rpm [ 'version' ] ) #NEWLINE# assert component_rpm [ 'release' ] #NEWLINE# epoch = component_rpm [ 'epoch' ] #NEWLINE# assert ( ( epoch is None ) or isinstance ( epoch , int ) ) #NEWLINE# assert is_string_type ( component_rpm [ 'arch' ] ) #NEWLINE# assert ( component_rpm [ 'signature' ] != '(none)' )