'Test the dictionary representation of a payment'

def test_to_dictionary(self):

    self.assertDictEqual(self.payment.to_dictionary(), {'trader_id': '2', 'transaction_number': 2, 'price': 2.0, 'price_type': 'BTC', 'quantity': 3.0, 'quantity_type': 'MC', 'payment_id': 'aaa', 'address_from': 'a', 'address_to': 'b', 'timestamp': 4.0, 'success': True})
