#!/bin/sh

cat > tox.ini <<EOF
[tox]
envlist = py2,py3

[testenv]
commands = python -m unittest discover -v

[testenv:py2]
basepython = python2

[testenv:py3]
basepython = python3

EOF

cat > test_smoke.py <<EOF
from unittest import TestCase

class TestSimple(TestCase):
    def setUp(self):
        self.a = 1

    def test_addition(self):
        self.assertEqual(self.a + 1, 2)

EOF

tox
