build the query with the query builder
This commit is contained in:
@@ -91,6 +91,8 @@ class DbApiTestCase(test.TestCase):
|
||||
inst2 = db.instance_create(self.context, args2)
|
||||
db.instance_destroy(self.context, inst1.id)
|
||||
result = db.instance_get_all_by_filters(self.context.elevated(), {})
|
||||
print str(dict(result[0]))
|
||||
print str(dict(result[1]))
|
||||
self.assertEqual(2, len(result))
|
||||
self.assertEqual(result[0].id, inst2.id)
|
||||
self.assertEqual(result[1].id, inst1.id)
|
||||
|
||||
Reference in New Issue
Block a user