Пример #1
0
	def test_RowCount(self):
		biz = self.biz
		self.assertEqual(biz.RowCount, 3)
		biz.delete()
		self.assertEqual(biz.RowCount, 2)
		biz.new()
		self.assertEqual(biz.RowCount, 3)
Пример #2
0
 def test_RowCount(self):
     biz = self.biz
     self.assertEqual(biz.RowCount, 3)
     biz.delete()
     self.assertEqual(biz.RowCount, 2)
     biz.new()
     self.assertEqual(biz.RowCount, 3)
Пример #3
0
	def testDeleteNewSave(self):
		biz = self.biz
		biz.delete()
		biz.new()
		biz.save()
		self.assertEqual(biz.RowCount, 3)
		self.assertEqual(biz.RowNumber, 2)

		biz.deleteAll()
		self.assertEqual(biz.RowCount, 0)

		self.assertRaises(dabo.dException.NoRecordsException, biz.delete)

		biz.new()
		self.assertEqual(biz.RowCount, 1)
		biz.delete()
		self.assertEqual(biz.RowCount, 0)

		biz.new()
		biz.save()
		self.assertEqual(biz.RowCount, 1)
		self.assertEqual(biz.RowNumber, 0)
Пример #4
0
    def testDeleteNewSave(self):
        biz = self.biz
        biz.delete()
        biz.new()
        biz.save()
        self.assertEqual(biz.RowCount, 3)
        self.assertEqual(biz.RowNumber, 2)

        biz.deleteAll()
        self.assertEqual(biz.RowCount, 0)

        self.assertRaises(dabo.dException.NoRecordsException, biz.delete)

        biz.new()
        self.assertEqual(biz.RowCount, 1)
        biz.delete()
        self.assertEqual(biz.RowCount, 0)

        biz.new()
        biz.save()
        self.assertEqual(biz.RowCount, 1)
        self.assertEqual(biz.RowNumber, 0)