Example #1
0
class TransactionTest(unittest.TestCase):
    def setUp(self):
        self.transaction = Transaction('Alex', 'Yann', 'signature', 15)

    def test_dict(self):
        tx = self.transaction.to_ordered_dict()
        self.assertIsInstance(tx, dict)

    def test_str(self):
        tx = self.transaction.__repr__()
        self.assertIsInstance(tx, str)