<s> import unittest <EOL> from arangodb . api import Document <EOL> from arangodb . tests . base import client <EOL> class DocumentTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_document_access_values_by_attribute_getter ( self ) : <EOL> doc = Document ( id = '<STR_LIT>' , key = '<STR_LIT>' , collection = '<STR_LIT>' , api = client . api ) <EOL> doc . is_loaded = True <EOL> doc_attr_value = '<STR_LIT>' <EOL> doc . set ( key = '<STR_LIT:test>' , value = doc_attr_value ) <EOL> self . assertEqual ( doc . test , doc_attr_value ) <EOL> def test_document_access_values_by_attribute_setter ( self ) : <EOL> doc = Document ( id = '<STR_LIT>' , key = '<STR_LIT>' , collection = '<STR_LIT>' , api = client . api ) <EOL> doc . is_loaded = True <EOL> doc_attr_value = '<STR_LIT>' <EOL> doc . test = doc_attr_value <EOL> self . assertEqual ( doc . get ( key = '<STR_LIT:test>' ) , doc_attr_value ) </s>
