modernize unit tests
This commit is contained in:
parent
2d12dd6a28
commit
f5f5e366ea
4 changed files with 46 additions and 23 deletions
|
@ -2,7 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# DDPortfolio service DdportfolioController test
|
||||
# Copyright (c) 2009 Jan Dittberner <jan@dittberner.info>
|
||||
# Copyright © 2009, 2010 Jan Dittberner <jan@dittberner.info>
|
||||
#
|
||||
# This file is part of DDPortfolio service.
|
||||
#
|
||||
|
@ -20,10 +20,11 @@
|
|||
# License along with this program. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
from ddportfolioservice.tests import *
|
||||
from ddportfolioservice.tests import TestController, url
|
||||
|
||||
|
||||
class TestDdportfolioController(TestController):
|
||||
|
||||
def test_index(self):
|
||||
response = self.app.get(url_for(controller='ddportfolio', action='index'))
|
||||
response = self.app.get(url(controller='ddportfolio', action='index'))
|
||||
# Test response...
|
||||
|
|
|
@ -1,7 +1,29 @@
|
|||
from ddportfolioservice.tests import *
|
||||
# -*- python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# DDPortfolio service DdportfolioController test
|
||||
# Copyright © 2009, 2010 Jan Dittberner <jan@dittberner.info>
|
||||
#
|
||||
# This file is part of DDPortfolio service.
|
||||
#
|
||||
# DDPortfolio service is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Affero General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# DDPortfolio service is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public
|
||||
# License along with this program. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
from ddportfolioservice.tests import TestController, url
|
||||
|
||||
class TestShowformscriptsController(TestController):
|
||||
|
||||
def test_index(self):
|
||||
response = self.app.get(url_for(controller='showformscripts', action='index'))
|
||||
response = self.app.get(url(controller='showformscripts', action='index'))
|
||||
# Test response...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue