def test_properties(self):
     props = TestModel.properties()
     self.assert_('xstring' in props)
     self.assert_(isinstance(props['xstring'], db.StringProperty))
     self.assert_('gae_parent_id' not in props)
     # From a App Engine perspective this is wrong. Choices should
     # be ('foo', 'bar'). For Django this is right.
     self.assertEqual(props['choices'].choices,
                      [('foo', 'foo'), ('bar', 'bar')])
Exemplo n.º 2
0
 def test_properties(self):
     props = TestModel.properties()
     self.assert_('xstring' in props)
     self.assert_(isinstance(props['xstring'], db.StringProperty))
     self.assert_('gae_parent_id' not in props)
 def test_properties(self):
     props = TestModel.properties()
     self.assert_('xstring' in props)
     self.assert_(isinstance(props['xstring'], db.StringProperty))
     self.assert_('gae_parent_id' not in props)