~ubuntu-branches/debian/squeeze/nose/squeeze

« back to all changes in this revision

Viewing changes to functional_tests/support/package2/test_pak/test_mod.py

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Marek, Torsten Marek, Gustavo Noronha Silva
  • Date: 2008-06-12 13:39:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080612133943-2q7syp67fwl4on13
Tags: 0.10.3-1

[Torsten Marek]
* New upstream release (Closes: #461994)
* debian/control
  - bump standards version to 3.8.0, no changes necessary
  - add suggestions for python-coverage (Closes: #457053)
  - change dependency on python-setuptools into 
    python-pkg-resources (Closes: #468719)
  - added myself to uploaders

[Gustavo Noronha Silva]
* debian/control:
  - remove -1 from build-dep on setuptools

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
print "test_mod imported!"
 
2
 
 
3
import maths
 
4
from test_pak import state
 
5
 
 
6
def setup():
 
7
    print "MOD setup called", state, id(state)
 
8
    state.append('test_pak.test_mod.setup')
 
9
 
 
10
def test_add():
 
11
    print "MOD.test_add called", state, id(state)
 
12
    state.append('test_pak.test_mod.test_add')
 
13
    assert maths.add(1, 2) == 3
 
14
 
 
15
def test_minus():
 
16
    state.append('test_pak.test_mod.test_minus')
 
17
    
 
18
def teardown():
 
19
    print "MOD teardown called", state, id(state)
 
20
    state.append('test_pak.test_mod.teardown')