예제 #1
0
 def __unicode__(self):
     return unicode(self.model) if self.model is not None else quoted(
         unicode(self.content))
예제 #2
0
 def test_quoted(self):
     self.assertEqual(quoted('string'), '"string"')
     self.assertEqual(quoted('first second third'), '"first second third"')
     self.assertEqual(quoted(u'رشته'), u'"رشته"')
예제 #3
0
 def __unicode__(self):
     return unicode(self.model) if self.model is not None else quoted(unicode(self.content))
예제 #4
0
 def test_quoted(self):
     self.assertEqual(quoted('string'), '"string"')
     self.assertEqual(quoted('first second third'), '"first second third"')
     self.assertEqual(quoted(u'رشته'), u'"رشته"')