@pytest.mark.django_db
def test_data_tp(english):
 tp = TranslationProjectFactory(project=ProjectDBFactory(source_language=english), language=LanguageDBFactory())
 assert (repr(tp.data) == ('<TPData: %s>' % tp.pootle_path))

@ pytest . mark . django_db def test_data_tp ( english ) : tp = TranslationProjectFactory ( project = ProjectDBFactory ( source_language = english ) , language = LanguageDBFactory ( ) ) assert ( repr ( tp . data ) == ( '<TPData: %s>' % tp . pootle_path ) )
test that you cant add a duplicate file extension .