@pytest.mark.django_db
def test_getorig(project0_nongnu, store0):
 store0.sync()
 for (i, db_unit) in enumerate(store0.units.iterator()):
  store_unit = store0.file.store.units[(i + 1)]
  assert (db_unit.getid() == store_unit.getid())

@ pytest . mark . django_db def test_getorig ( project0_nongnu , store0 ) : store0 . sync ( ) for ( i , db_unit ) in enumerate ( store0 . units . iterator ( ) ) : store_unit = store0 . file . store . units [ ( i + 1 ) ] assert ( db_unit . getid ( ) == store_unit . getid ( ) )
tests that the in-db store and on-disk store match by checking that units match in order .