Add a unittest
Change-Id: Ia90868fea826a208d46715c8759e9e19f09af90f
This commit is contained in:
parent
140f513fc8
commit
5524d04e28
|
@ -0,0 +1,27 @@
|
|||
# Copyright 2012 Michael Still and Canonical Inc
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from testtools import testcase
|
||||
|
||||
|
||||
class TestTestCase(testcase.TestCase):
|
||||
def setUp(self):
|
||||
super(TestTestCase, self).setUp()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testSomething(self):
|
||||
self.assertEqual(2, 2)
|
||||
self.assertEqual(3, 2)
|
7
tox.ini
7
tox.ini
|
@ -4,10 +4,13 @@ skipsdist = True
|
|||
envlist = py26,py27,py33,pep8
|
||||
|
||||
[testenv]
|
||||
install_command = pip install -U {opts} {packages}
|
||||
commands = {envpython} setup.py test
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
usedevelop = True
|
||||
install_command = pip install --allow-all-external --allow-insecure netaddr -U {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py test
|
||||
whitelist_externals = bash
|
||||
|
||||
[testenv:py33]
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
|
|
Loading…
Reference in New Issue