コード例 #1
0
ファイル: test_aggregate.py プロジェクト: bopopescu/nova-2
 def test_aggregate_delete_with_metadata(self):
     result = _create_aggregate(self.context,
                         metadata={'availability_zone': 'fake_avail_zone'})
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
コード例 #2
0
ファイル: test_aggregate.py プロジェクト: 4everming/nova
 def test_aggregate_delete_with_metadata(self):
     result = _create_aggregate(self.context,
                         metadata={'availability_zone': 'fake_avail_zone'})
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
コード例 #3
0
ファイル: test_aggregate.py プロジェクト: bopopescu/nova-2
 def test_aggregate_delete(self):
     result = _create_aggregate(self.context, metadata=None)
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
コード例 #4
0
ファイル: test_aggregate.py プロジェクト: 4everming/nova
 def test_aggregate_delete(self):
     result = _create_aggregate(self.context, metadata=None)
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])