<s> from couchbase . tests . base import CouchbaseTestCase <EOL> from couchbase . iops . select import SelectIOPS <EOL> class IopsTest ( CouchbaseTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( IopsTest , self ) . setUp ( ) <EOL> def _iops_connection ( self , ** kwargs ) : <EOL> return self . make_connection ( _iops = SelectIOPS ( ) , ** kwargs ) <EOL> def test_creation ( self ) : <EOL> self . _iops_connection ( ) <EOL> self . assertTrue ( True ) <EOL> def test_simple_ops ( self ) : <EOL> cb = self . _iops_connection ( ) <EOL> key = self . gen_key ( "<STR_LIT>" ) <EOL> value = "<STR_LIT>" <EOL> cb . upsert ( key , value ) <EOL> rv = cb . get ( key ) <EOL> self . assertTrue ( rv . success ) <EOL> self . assertEqual ( rv . value , value ) </s>
