Advertisement
Guest User

Untitled

a guest
Feb 25th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. # Added to nova/tests/unit/db/test_db_api.py
  2.  
  3.     def test_edsstuffisbroken(self):
  4.         db_cn = self.item
  5.         self.assertEqual(1024, db_cn['memory_mb'])
  6.         db_cn = db.compute_node_get(self.ctxt, self.item.id)
  7.         self.assertEqual(1024, db_cn['memory_mb'])
  8.         db.compute_node_update(self.ctxt, self.item.id,
  9.                                {'memory_mb': 2048})
  10.         db_cn = db.compute_node_get(self.ctxt, self.item.id)
  11.         self.assertEqual(2048, db_cn['memory_mb'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement