@pytest.mark.django_db
def test_revision_incr(store0):
 previous_revision = Revision.get()
 db_unit = _update_translation(store0, 0, {'target': [u'Fleisch']}, sync=False)
 assert (db_unit.revision != previous_revision)
 assert (Revision.get() != previous_revision)
 assert (db_unit.revision == Revision.get())
 previous_revision = Revision.get()
 db_unit = _update_translation(store0, 0, {'target': u'Lachs'}, sync=False)
 assert (db_unit.revision != previous_revision)
 assert (Revision.get() != previous_revision)
 assert (db_unit.revision == Revision.get())

@ pytest . mark . django_db def test_revision_incr ( store0 ) : previous_revision = Revision . get ( ) db_unit = _update_translation ( store0 , 0 , { 'target' : [ u'Fleisch' ] } , sync = False ) assert ( db_unit . revision != previous_revision ) assert ( Revision . get ( ) != previous_revision ) assert ( db_unit . revision == Revision . get ( ) ) previous_revision = Revision . get ( ) db_unit = _update_translation ( store0 , 0 , { 'target' : u'Lachs' } , sync = False ) assert ( db_unit . revision != previous_revision ) assert ( Revision . get ( ) != previous_revision ) assert ( db_unit . revision == Revision . get ( ) )
tests revision is incremented when units change .