Example #1
0
 def test_selection(self):
     logging.getLogger().setLevel(logging.DEBUG)
     query = Query(Dog).filter(Dog.name=="Bobby").filter(Dog.specy=="Griffon")
     bobby = query.first()
     bobby.save()
     print("My dog's name is %s" % (bobby.name))
     self.assertEqual(True, True)
 def run(self):
     query = Query(models.InstanceInfoCache).filter_by(instance_uuid=instance_uuid)
     query.first()
 def run(self):
     query = Query(
         models.InstanceInfoCache).filter_by(instance_uuid=instance_uuid)
     query.first()