old_contents: from __future__ import unicode_literals
  
  import factory
  
  from wtl.wtlib import models
  
  
  class LanguageFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Language
      name = factory.Sequence(lambda n: 'lang {0}'.format(n))
  
  
  class LibraryFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Library
      language = factory.SubFactory(LanguageFactory)
      name = 'mylib'
  
  
  class LibraryVersionFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.LibraryVersion
      library = factory.SubFactory(LibraryFactory)
      version = '0.1.0-alpha'
      version_special = ''
  
  
  class ProjectFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Project
  
new_contents: from __future__ import unicode_literals
  
  import factory
  
  from wtl.wtlib import models
  
  
  class LanguageFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Language
      name = factory.Sequence(lambda n: 'lang {0}'.format(n))
  
  
  class LibraryFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Library
      language = factory.SubFactory(LanguageFactory)
      name = factory.Sequence(lambda n: 'mylib {0}'.format(n))
  
  
  class LibraryVersionFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.LibraryVersion
      library = factory.SubFactory(LibraryFactory)
      version = '0.1.0-alpha'
      version_special = ''
  
  
  class ProjectFactory(factory.DjangoModelFactory):
      FACTORY_FOR = models.Project
  
subject: Improve LibraryFactory a bit