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