示例#1
0
 def __str__(self):
     return str(self.name)
示例#2
0
 def __str__(self):
     return str(getattr(self, self._fields[0]))
示例#3
0
 def __str__(self):
     return str(self.name)
示例#4
0
 def test_str(self):
     account_obj = models.Account(name='Salary')
     assert str(account_obj) == 'Salary'
示例#5
0
 def test_unicode(self):
     account_obj = models.Account(name='משכורת')
     assert str(account_obj) == 'משכורת'
示例#6
0
 def test_str(self):
     account_obj = models.Account(name='Salary')
     assert str(account_obj) == 'Salary'
示例#7
0
 def test_unicode(self):
     account_obj = models.Account(name='משכורת')
     assert str(account_obj) == 'משכורת'