~ethuleau/nova/lp824433

« back to all changes in this revision

Viewing changes to nova/tests/test_db_api.py

  • Committer: Tarmac
  • Author(s): Brian Waldon
  • Date: 2011-09-01 17:54:52 UTC
  • mfrom: (1508.4.4 changes-since-lp837405)
  • Revision ID: tarmac-20110901175452-bc0key3jekoksnpf
- implements changes-since for servers resource
- default sort is now created_at desc for instances

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        inst2 = db.instance_create(self.context, args2)
92
92
        db.instance_destroy(self.context, inst1.id)
93
93
        result = db.instance_get_all_by_filters(self.context.elevated(), {})
94
 
        self.assertEqual(1, len(result))
 
94
        self.assertEqual(2, len(result))
95
95
        self.assertEqual(result[0].id, inst2.id)
 
96
        self.assertEqual(result[1].id, inst1.id)
 
97
        self.assertTrue(result[1].deleted)