def test_update_node(self):
    node = utils.create_test_node()
    old_extra = node.extra
    new_extra = {'foo': 'bar'}
    self.assertNotEqual(old_extra, new_extra)
    res = self.dbapi.update_node(node.id, {'extra': new_extra})
    self.assertEqual(new_extra, res.extra)
    self.assertEqual([], res.tags)
    self.assertEqual([], res.traits)
def test_update_node(self):
    node = utils.create_test_node()
    old_extra = node.extra
    new_extra = {'foo': 'bar'}
    self.assertNotEqual(old_extra, new_extra)
    res = self.dbapi.update_node(node.id, {'extra': new_extra})
    self.assertEqual(new_extra, res.extra)
    self.assertEqual([], res.tags)
    self.assertEqual([], res.traits)