Пример #1
0
	def test_IsAdding(self):
		biz = self.biz
		self.assertEqual(biz.IsAdding, False)
		biz.new()
		self.assertEqual(biz.IsAdding, True)
		biz.first()
		self.assertEqual(biz.IsAdding, False)
Пример #2
0
 def test_IsAdding(self):
     biz = self.biz
     self.assertEqual(biz.IsAdding, False)
     biz.new()
     self.assertEqual(biz.IsAdding, True)
     biz.first()
     self.assertEqual(biz.IsAdding, False)
Пример #3
0
	def test_RowNumber(self):
		biz = self.biz
		self.assertEqual(biz.RowNumber, 0)
		biz.next()
		self.assertEqual(biz.RowNumber, 1)
		biz.RowNumber = 2
		self.assertEqual(biz.RowNumber, 2)
		biz.first()
		self.assertEqual(biz.RowNumber, 0)
Пример #4
0
 def test_RowNumber(self):
     biz = self.biz
     self.assertEqual(biz.RowNumber, 0)
     biz.next()
     self.assertEqual(biz.RowNumber, 1)
     biz.RowNumber = 2
     self.assertEqual(biz.RowNumber, 2)
     biz.first()
     self.assertEqual(biz.RowNumber, 0)
     biz.deleteAll()
     self.assertEqual(biz.RowNumber, -1)
Пример #5
0
	def test_RowNumber(self):
		biz = self.biz
		self.assertEqual(biz.RowNumber, 0)
		next(biz)
		self.assertEqual(biz.RowNumber, 1)
		biz.RowNumber = 2
		self.assertEqual(biz.RowNumber, 2)
		biz.first()
		self.assertEqual(biz.RowNumber, 0)
		biz.deleteAll()
		self.assertEqual(biz.RowNumber, -1)