Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mock.patch('nova.objects.Service.get_minimum_version', return_value=7)
- def test_edsstuffisbroken(self, mock_gmv):
- self.cn.create()
- db_cn = db.compute_node_get(self.context, self.cn.id)
- self.assertEqual(512, db_cn['memory_mb'])
- db_cn = db.compute_node_get(self.context, self.cn.id)
- self.assertEqual(512, db_cn['memory_mb'])
- db.compute_node_update(self.context, self.cn.id,
- {'memory_mb': 1024})
- db_cn = db.compute_node_get(self.context, self.cn.id)
- self.assertEqual(1024, db_cn['memory_mb'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement