VOL-1448: Added unit test and unit-test-with-coverage support

Change-Id: Ia3c1c3b18b0871b9a796f6eb62e9f2bb14b33ab8
diff --git a/tox.ini b/tox.ini
index 97b442d..b32b8b6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -44,7 +44,6 @@
 [pylama:test/*]
 ignore = C0111,R0201,R0903
 
-
 [pytest]
 passenv = {env:PYTEST_ARGS}
 flags =-vvl {env:PYTEST_ARGS:}
@@ -53,7 +52,11 @@
 test = py.test {[pytest]flags} {[pytest]unit_results}
 with_metrics = {[pytest]test} {[cov]coverage}
 
+[nosetests]
+passenv =
+
 [testenv]
+changedir = test/unit
 basepython =
     py27: python2.7
     ;py3: python3
@@ -62,7 +65,10 @@
     ;py3: {toxworkdir}/.py3
 setenv =
   COVERAGE_FILE = {envdir}/.coverage
+  PYTHONPATH = {toxinidir}:{toxinidir}/pyvoltha/protos/third_party
+
 commands =
+    py27: nosetests {posargs}
 ;    py3-test: {[pytest]with_metrics} test
 ;    py3-no-coverage: {[pytest]test} test
 ;    py3-unit: {[pytest]with_metrics} test/unit
@@ -72,12 +78,6 @@
 ;    py3-analysis: black --check {[pylama]analysis_dirs}
 ;    py3-black: black {[pylama]analysis_dirs}
 ;    py3-docs: sphinx-build -b html docs docs_out
-    py27-test: nosetests {posargs}
-    py27-test: {[pytest]with_metrics} test
-    py27-no-coverage: {[pytest]test} test
-    py27-unit: {[pytest]with_metrics} test/unit
-    py27-component: {[pytest]with_metrics} test/component
-    py27-adhoc: {posargs: bash -c 'echo must provide posargs with "tox args -- posargs"'}
 
 deps =
    nose