<s> '''<STR_LIT>''' <EOL> from stdnet . utils import test , populate , zip , iteritems , to_string <EOL> from examples . models import SimpleString <EOL> from . struct import MultiFieldMixin <EOL> class TestStringField ( MultiFieldMixin , test . TestCase ) : <EOL> multipledb = '<STR_LIT>' <EOL> model = SimpleString <EOL> def adddata ( self , li ) : <EOL> '''<STR_LIT>''' <EOL> for elem in self . data . names : <EOL> li . data . push_back ( elem ) <EOL> yield self . async . assertEqual ( li . data . size ( ) , <EOL> len ( '<STR_LIT>' . join ( self . data . names ) ) ) <EOL> def test_incr ( self ) : <EOL> m = yield self . session ( ) . add ( self . model ( ) ) <EOL> self . async . assertEqual ( m . data . incr ( ) , <NUM_LIT:1> ) <EOL> self . async . assertEqual ( m . data . incr ( ) , <NUM_LIT:2> ) <EOL> self . async . assertEqual ( m . data . incr ( <NUM_LIT:3> ) , <NUM_LIT:5> ) <EOL> self . async . assertEqual ( m . data . incr ( - <NUM_LIT:7> ) , - <NUM_LIT:2> ) </s>
