Debian Codegraph @

debian/tests/smoketest

raw
1 #!/bin/sh
2
3 export http_proxy=127.0.0.1:9
4 export https_proxy=127.0.0.1:9
5
6
7 cd $AUTOPKGTEST_TMP
8
9 cat > tox.ini <<EOF
10 [tox]
11 envlist = py3
12 skipsdist = True
13
14 [testenv]
15 commands = {envbindir}/python -m unittest discover -v
16 deps =
17
18 [testenv:py3]
19 basepython = python3
20
21 EOF
22
23 cat > test_smoke.py <<EOF
24 from unittest import TestCase
25
26 class TestSimple(TestCase):
27 def setUp(self):
28 self.a = 1
29
30 def test_addition(self):
31 self.assertEqual(self.a + 1, 2)
32
33 EOF
34
35 tox