~jayvdb/testscenarios/fix-py3-tests

« back to all changes in this revision

Viewing changes to lib/testscenarios/testcase.py

  • Committer: Robert Collins
  • Date: 2009-03-08 02:03:02 UTC
  • Revision ID: robertc@robertcollins.net-20090308020302-68x4yegjcl3v1hpi
Start on TestWithScenarios.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  testscenarios: extensions to python unittest to allow declarative
 
2
#  dependency injection ('scenarios') by tests.
 
3
#  Copyright (C) 2009  Robert Collins <robertc@robertcollins.net>
 
4
#
 
5
#  This program is free software; you can redistribute it and/or modify
 
6
#  it under the terms of the GNU General Public License as published by
 
7
#  the Free Software Foundation; either version 2 of the License, or
 
8
#  (at your option) any later version.
 
9
#
 
10
#  This program is distributed in the hope that it will be useful,
 
11
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
#  GNU General Public License for more details.
 
14
#
 
15
#  You should have received a copy of the GNU General Public License
 
16
#  along with this program; if not, write to the Free Software
 
17
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
#
 
19
 
 
20
__all__ = [
 
21
    'TestWithScenarios',
 
22
    ]
 
23
 
 
24
import unittest
 
25
 
 
26
class TestWithScenarios(unittest.TestCase):
 
27
    """A TestCase with support for scenarios via a scenarios attribute."""