#NEWLINE# def test_make_NegatedValidator( ) : #NEWLINE# #INDENT# class MyValidator ( validators . BaseValidator ) : #NEWLINE# #INDENT# def _validate( fh , m ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# mv = MyValidator ( ) #NEWLINE# negated_mv = ( ~ mv ) #NEWLINE# assert isinstance ( negated_mv , validators . NegatedValidator ) #NEWLINE# assert ( negated_mv . _nested is mv )