~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/tests/test_db_api.py

  • Committer: Tarmac
  • Author(s): Jason Koelker
  • Date: 2011-09-19 20:16:49 UTC
  • mfrom: (1558.1.54 network_refactor)
  • Revision ID: tarmac-20110919201649-9em4fa4tdwe91oic
* Remove the foreign key and backrefs tying vif<->instance
* Update instance filtering to pass ip related filters to the network manager
* move/update tests

Show diffs side-by-side

added added

removed removed

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