Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/b/o/botoweb-HEAD/tests/db/test_sequence.py   botoweb(Download)
	def test_sequence_simple_int(self):
		"""Test a simple counter sequence"""
		from botoweb.db.sequence import Sequence
		s = Sequence()
		self.sequences.append(s)
		assert(s.val == 0)
		assert(s.next() == 1)
		assert(s.next() == 2)
		s2 = Sequence(s.id)
	def test_sequence_simple_string(self):
		from botoweb.db.sequence import Sequence, increment_string
		s = Sequence(fnc=increment_string)
		self.sequences.append(s)
		assert(s.val == "A")