text: # -*- coding: utf-8 -*-
  
  """
  Created on 2019-02-01
  :author:  ()
  """
  
  from pytest import raises
  
  
  def test_model(root, db_session):
      from kotti_forum.resources import CustomContent
  
      cc = CustomContent()
      assert cc.custom_attribute is None
  
      cc = CustomContent(custom_attribute=u'Foo')
      assert cc.custom_attribute == u'Foo'
  
      root['cc'] = cc = CustomContent()
      assert cc.name == 'cc'
  
      with raises(TypeError):
          cc = CustomContent(doesnotexist=u'Foo')
  