@pytest.mark.django_db
def test_data_store(tp0):
 store = StoreDBFactory(name='foo.po', parent=tp0.directory, translation_project=tp0)
 assert (repr(store.data) == ('<StoreData: %s>' % store.pootle_path))

@ pytest . mark . django_db def test_data_store ( tp0 ) : store = StoreDBFactory ( name = 'foo.po' , parent = tp0 . directory , translation_project = tp0 ) assert ( repr ( store . data ) == ( '<StoreData: %s>' % store . pootle_path ) )
test that you cant add a duplicate file extension .