Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/b/o/botoweb-HEAD/tests/db/test_sequence.py   botoweb(Download)
	def test_fib(self):
		"""Test the fibonacci sequence generator"""
		from botoweb.db.sequence import fib
		# Just check the first few numbers in the sequence
		lv = 0
		for v in [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144]:
			assert(fib(v, lv) == lv+v)
			lv = fib(v, lv)
	def test_sequence_fib(self):
		"""Test the fibonacci sequence"""
		from botoweb.db.sequence import Sequence, fib
		s = Sequence(fnc=fib)
		s2 = Sequence(s.id)