def test_str(self): # tests no exceptions when getting the string representation of some entities obj = Transaction() obj.__str__() obj.__unicode__() obj2 = Budget() obj2.be_accounts.__str__()
def testrepr(self): tr1 = Transaction(id='t') self.assertEqual(tr1.__repr__(), tr1.__str__())
def test_repr(): tr1 = Transaction(id='t') assert tr1.__repr__() == tr1.__str__()