'Test the to dictionary method of a transaction'

def test_to_dictionary(self):

    self.assertDictEqual(self.transaction.to_dictionary(), {'trader_id': '0', 'transaction_number': 1, 'order_number': 2, 'partner_trader_id': '2', 'partner_order_number': 1, 'payment_complete': False, 'price': 100.0, 'price_type': 'BTC', 'quantity': 30.0, 'quantity_type': 'MC', 'transferred_price': 0.0, 'transferred_quantity': 0.0, 'timestamp': 0.0, 'status': 'pending'})
