#NEWLINE# def test_range( self ) : #NEWLINE# #INDENT# '\n        Test field created from string representation of a range.\n        ' #NEWLINE# start = ( self . min + 10 ) #NEWLINE# stop = ( start + 10 ) #NEWLINE# midpt = ( ( start + stop ) / 2 ) #NEWLINE# field = self . field ( '{0}-{1}' . format ( start , stop ) ) #NEWLINE# assert ( start in field ) #NEWLINE# assert ( midpt in field ) #NEWLINE# assert ( stop in field ) #NEWLINE# assert ( not ( ( start - 1 ) in self ) ) #NEWLINE# assert ( not ( ( stop + 1 ) in field ) )