def create_transaction(self):
		trans_payload = {
			"to":{
				"type":"SYNAPSE-US",
				"id":TO_NODE_ID
			},
			"amount":{
				"amount":11.10,
				"currency":"USD"
			},
			"extra":{
				"supp_id":"1283764wqwsdd34wd13212",
				"note":"Deposit to bank account",
				"webhook":"http://requestb.in/q94kxtq9",
				"process_on":1,
				"ip":"192.168.0.1",
				"other":{
					"attachments": []
				}
			},
			"fees":[{
				"fee":1.00,
				"note":"Facilitator Fee",
				"to":{
					"id":"55d9287486c27365fe3776fb"
				}
			}]
		}
		transaction = Transactions.create(node=self.node, payload=trans_payload)
		return transaction
 def create_transaction(self):
     trans_payload = {
         "to": {
             "type": "SYNAPSE-US",
             "id": TO_NODE_ID
         },
         "amount": {
             "amount": 2.10,
             "currency": "USD"
         },
         "extra": {
             "supp_id": "1283764wqwsdd34wd13212",
             "note": "Deposit to bank account",
             "webhook": "http://requestb.in/q94kxtq9",
             "process_on": 1,
             "ip": "192.168.0.1",
             "other": {
                 "attachments": []
             }
         },
         "fees": [{
             "fee": 1.00,
             "note": "Facilitator Fee",
             "to": {
                 "id": "55d9287486c27365fe3776fb"
             }
         }]
     }
     transaction = Transactions.create(node=self.node,
                                       payload=trans_payload)
     return transaction
	def test_get_success(self):
		trans_id = self.create_transaction().json['_id']
		transaction = Transactions.get(node=self.node, _id=trans_id)
		self.assertTrue(transaction.json != None)
 def test_get_success(self):
     trans_id = self.create_transaction().json['_id']
     transaction = Transactions.get(node=self.node, _id=trans_id)
     self.assertTrue(transaction.json != None)