<s> from arangodb . tests . base import ExtendedTestCase <EOL> from arangodb . api import Database <EOL> from arangodb . user import User <EOL> class UserTestCase ( ExtendedTestCase ) : <EOL> def setUp ( self ) : <EOL> self . database_name = '<STR_LIT>' <EOL> self . db = Database . create ( name = self . database_name ) <EOL> def tearDown ( self ) : <EOL> Database . remove ( name = self . database_name ) <EOL> def test_get_root ( self ) : <EOL> root = User . get ( name = '<STR_LIT:root>' ) <EOL> self . assertEqual ( root . name , '<STR_LIT:root>' ) <EOL> def test_create_and_delete_user_foo ( self ) : <EOL> user_name = '<STR_LIT:foo>' <EOL> User . create ( name = user_name , password = '<STR_LIT>' ) <EOL> foo_user = User . get ( name = user_name ) <EOL> self . assertEqual ( foo_user . name , user_name ) <EOL> User . remove ( name = user_name ) </s>
