Exemplo n.º 1
0
 def test_polymorphic_type(self):
     """should return #{id}_type if it is polymorphic"""
     belongs = BelongsTo(target_klass=self.klass, id='bar', polymorphic=True)
     self.assertEqual('bar_type', belongs.polymorphic_type())
Exemplo n.º 2
0
 def test_polymorphic_type(self):
     """should return #{id}_type if it is polymorphic"""
     belongs = BelongsTo(self.klass, "bar", polymorphic=True)
     self.assertEqual("bar_type", belongs.polymorphic_type())