Did I find the right examples for you? yes no

All Samples(13)  |  Call(11)  |  Derive(0)  |  Import(2)

src/b/o/botoweb-HEAD/tests/db/test_sequence.py   botoweb(Download)
	def test_sequence_generator_no_rollover(self):
		"""Test the sequence generator without rollover"""
		from botoweb.db.sequence import SequenceGenerator
		gen = SequenceGenerator("ABC")
		assert(gen("") == "A")
		assert(gen("A") == "B")
		assert(gen("B") == "C")