#NEWLINE# def assert_attrs( self , rangeobj , start , stop , step ) : #NEWLINE# #INDENT# self . assertEqual ( rangeobj . start , start ) #NEWLINE# self . assertEqual ( rangeobj . stop , stop ) #NEWLINE# self . assertEqual ( rangeobj . step , step ) #NEWLINE# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# rangeobj . start = 0 #NEWLINE# #UNINDENT# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# rangeobj . stop = 10 #NEWLINE# #UNINDENT# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# rangeobj . step = 1 #NEWLINE# #UNINDENT# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# del rangeobj . start #NEWLINE# #UNINDENT# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# del rangeobj . stop #NEWLINE# #UNINDENT# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# del rangeobj . step