def test_update_node_with_tags(self):
    node = utils.create_test_node()
    tag = utils.create_test_node_tag(node_id=node.id)
    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([tag.tag], [t.tag for t in res.tags])
def test_update_node_with_tags(self):
    node = utils.create_test_node()
    tag = utils.create_test_node_tag(node_id=node.id)
    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([tag.tag], [t.tag for t in res.tags])