Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/b/o/botoweb-HEAD/tests/db/test_sequence.py   botoweb(Download)
		self.sequences.append(s)
		assert(s.val == 0)
		assert(s.next() == 1)
		assert(s.next() == 2)
		s2 = Sequence(s.id)
		assert(s2.val == 2)
		assert(s.next() == 3)
		self.sequences.append(s)
		assert(s.val == "A")
		assert(s.next() == "B")
 
	def test_fib(self):
		# Just check the first few numbers in the sequence
		for v in [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144]:
			assert(s.next() == v)
			assert(s.val == v)
			assert(s2.val == v) # it shouldn't matter which reference we use since it's garunteed to be consistent