Beispiel #1
0
 def testGet(self):
     loader = Deal(DealTest.conn)
     deals = json.loads(loader.find())
     for deal in deals.get('data').get('response').get('deals'):
         assert deal.get('id') is not None
Beispiel #2
0
 def testGetById(self):
     deal_id = 6007
     loader = Deal(DealTest.conn)
     deal = json.loads(loader.find(deal_id))
     assert deal_id == deal.get('data').get('response').get('deal').get(
         'id')
Beispiel #3
0
 def testGetById(self):
     deal_id = 2000
     loader = Deal(DealTest.conn)
     deal = loader.find(deal_id)
     assert deal_id == deal.get('id')
Beispiel #4
0
 def testGet(self):
     loader = Deal(DealTest.conn)
     deals = loader.find()
     for deal in deals:
         assert deal.get('id') is not None
Beispiel #5
0
 def testGetById(self):
     deal_id = 2000
     loader = Deal(DealTest.conn)
     deal = loader.find(deal_id)
     assert deal_id == deal.get('id')
Beispiel #6
0
 def testGet(self):
     loader = Deal(DealTest.conn)
     deals = loader.find()
     for deal in deals:
         assert deal.get('id') is not None