File: test_mod.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (20 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
print "test_mod imported!"

import maths
from test_pak import state

def setup():
    print "MOD setup called", state, id(state)
    state.append('test_pak.test_mod.setup')

def test_add():
    print "MOD.test_add called", state, id(state)
    state.append('test_pak.test_mod.test_add')
    assert maths.add(1, 2) == 3

def test_minus():
    state.append('test_pak.test_mod.test_minus')
    
def teardown():
    print "MOD teardown called", state, id(state)
    state.append('test_pak.test_mod.teardown')