#NEWLINE# def smoke_test_element_creation( ) : #NEWLINE# #INDENT# elements = sorted ( [ elm for ( abbrev , elm ) in six . iteritems ( basic ) if isinstance ( abbrev , int ) ] ) #NEWLINE# for e in elements : #NEWLINE# #INDENT# sym = e . sym #NEWLINE# name = e . name #NEWLINE# inits = [ sym , sym . upper ( ) , sym . lower ( ) , sym . swapcase ( ) , name , name . upper ( ) , name . lower ( ) , name . swapcase ( ) ] #NEWLINE# for init in inits : #NEWLINE# #INDENT# elem = BasicElement ( init ) #NEWLINE# #UNINDENT# elem = BasicElement ( e . Z ) #NEWLINE# str ( elem ) #NEWLINE# for field in element . _fields : #NEWLINE# #INDENT# tuple_attr = getattr ( basic [ e . Z ] , field ) #NEWLINE# elem_attr_dct = elem [ str ( field ) ] #NEWLINE# elem_attr = getattr ( elem , field ) #NEWLINE# try : #NEWLINE# #INDENT# if np . isnan ( tuple_attr ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# except TypeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# assert_equal ( elem_attr_dct , tuple_attr ) #NEWLINE# assert_equal ( elem_attr , tuple_attr ) #NEWLINE# assert_equal ( elem_attr_dct , elem_attr ) #NEWLINE# #UNINDENT# #UNINDENT# for ( e1 , e2 ) in zip ( elements , elements [ 1 : ] ) : #NEWLINE# #INDENT# assert_equal ( e1 . __lt__ ( e2 ) , True ) #NEWLINE# assert_equal ( ( e1 < e2 ) , True ) #NEWLINE# assert_equal ( e1 . __eq__ ( e2 ) , False ) #NEWLINE# assert_equal ( ( e1 == e2 ) , False ) #NEWLINE# assert_equal ( ( e1 >= e2 ) , False ) #NEWLINE# assert_equal ( ( e1 > e2 ) , False ) #NEWLINE# assert_equal ( ( e2 < e1 ) , False ) #NEWLINE# assert_equal ( e2 . __lt__ ( e1 ) , False ) #NEWLINE# assert_equal ( ( e2 <= e1 ) , False ) #NEWLINE# assert_equal ( e2 . __eq__ ( e1 ) , False ) #NEWLINE# assert_equal ( ( e2 == e2 ) , False ) #NEWLINE# assert_equal ( ( e2 >= e1 ) , True ) #NEWLINE# assert_equal ( ( e2 > e1 ) , True )