コード例 #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__()
コード例 #2
0
 def testrepr(self):
     tr1 = Transaction(id='t')
     self.assertEqual(tr1.__repr__(), tr1.__str__())
コード例 #3
0
ファイル: test_entities.py プロジェクト: hmajr/pynYNAB
def test_repr():
    tr1 = Transaction(id='t')
    assert tr1.__repr__() == tr1.__str__()