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)
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)