#NEWLINE# def test_basic( self ) : #NEWLINE# #INDENT# m = Bit1Model ( ) #NEWLINE# m . flag_a = False #NEWLINE# m . flag_b = True #NEWLINE# m . save ( ) #NEWLINE# m = Bit1Model . objects . get ( id = m . id ) #NEWLINE# assert ( not m . flag_a ) #NEWLINE# assert m . flag_b #NEWLINE# m . save ( ) #NEWLINE# m = Bit1Model . objects . get ( id = m . id ) #NEWLINE# assert ( not m . flag_a ) #NEWLINE# assert m . flag_b #NEWLINE# m . flag_a = True #NEWLINE# m . flag_b = False #NEWLINE# m . save ( ) #NEWLINE# m = Bit1Model . objects . get ( id = m . id ) #NEWLINE# assert self . flag_a #NEWLINE# assert ( not m . flag_b )