#NEWLINE# def test_toggle_active( ) : #NEWLINE# #INDENT# datastore = UserDatastore ( None , None ) #NEWLINE# user = User ( ) #NEWLINE# user . active = True #NEWLINE# assert ( datastore . toggle_active ( user ) is True ) #NEWLINE# assert ( not user . active ) #NEWLINE# assert ( datastore . toggle_active ( user ) is True ) #NEWLINE# assert ( user . active is True )