<s> from django . test import TestCase <EOL> from djet import utils <EOL> from tests import models <EOL> class RefreshTest ( TestCase ) : <EOL> def test_refresh_should_update_instance_when_instance_changed ( self ) : <EOL> instance = models . MockModel . objects . create ( field = '<STR_LIT>' ) <EOL> models . MockModel . objects . filter ( pk = instance . pk ) . update ( field = '<STR_LIT>' ) <EOL> instance = utils . refresh ( instance ) <EOL> self . assertEqual ( instance . field , '<STR_LIT>' ) </s>
