File: test_foo.py

package info (click to toggle)
python-bottle-cork 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 936 kB
  • sloc: python: 6,862; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

import pytest


@pytest.fixture(params=["merlinux.eu", "mail.python.org"])
def backend(request):
    print 'called with ', request.param
    return request.param

@pytest.fixture
def fixa(backend):
    return backend

@pytest.fixture
def fixb(backend):
    return backend + 'b'

def test_1(fixa):
    assert not fixa

def test_2(fixb):
    assert not fixb