Ejemplo n.º 1
0
    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__()
Ejemplo n.º 2
0
 def testrepr(self):
     tr1 = Transaction(id='t')
     self.assertEqual(tr1.__repr__(), tr1.__str__())
Ejemplo n.º 3
0
def test_repr():
    tr1 = Transaction(id='t')
    assert tr1.__repr__() == tr1.__str__()