Exemplo n.º 1
0
 def test_sync(self):
     app_id = self.app_ids[0]
     country = self.countries[0]
     app_details1 = engine.get(AppDetails, app_id=app_id, country=country)
     app_details2 = engine.get(AppDetails, app_id=app_id, country=country)
     app_details1.artistName = "No One"
     app_details1.sync()
     app_details2.sync()
     self.assertEqual(app_details2.artistName, "No One")
Exemplo n.º 2
0
 def test_sync(self):
     app_id = self.app_ids[0]
     country = self.countries[0]
     app_details1 = engine.get(AppDetails, app_id=app_id, country=country)
     app_details2 = engine.get(AppDetails, app_id=app_id, country=country)
     app_details1.artistName = "No One"
     app_details1.sync()
     app_details2.sync()
     self.assertEqual(app_details2.artistName, "No One")
Exemplo n.º 3
0
 def test_save(self):
     app_id = 100
     country = 'in'
     app_details = AppDetails(app_id, country)
     engine.save(app_details, overwrite=True)
     engine.delete_key(AppDetails, app_id=app_id, country=country)
     app_details = engine.get(AppDetails, app_id=app_id, country=country)
     self.assertIsNone(app_details)
Exemplo n.º 4
0
 def test_save(self):
     app_id = 100
     country = 'in'
     app_details = AppDetails(app_id, country)
     engine.save(app_details, overwrite=True)
     engine.delete_key(AppDetails, app_id=app_id, country=country)
     app_details = engine.get(AppDetails, app_id=app_id, country=country)
     self.assertIsNone(app_details)
Exemplo n.º 5
0
 def test_get(self):
     app_id = self.app_ids[-1]
     country = self.countries[-1]
     app_details = engine.get(AppDetails, app_id=app_id, country=country)
     self.assertEqual(app_id, app_details.app_id)
     self.assertEqual(country, app_details.country)
Exemplo n.º 6
0
 def test_get(self):
     app_id = self.app_ids[-1]
     country = self.countries[-1]
     app_details = engine.get(AppDetails, app_id=app_id, country=country)
     self.assertEqual(app_id, app_details.app_id)
     self.assertEqual(country, app_details.country)