adding .coveragerc and some tests

This commit is contained in:
Roman Mogilatov 2015-03-10 16:12:42 +02:00
parent a4a160b061
commit 13d6a0f667
3 changed files with 20 additions and 0 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
include = objects/*
omit = tests/*

View File

@ -0,0 +1 @@
"""Objects unittests."""

16
tests/test_injections.py Normal file
View File

@ -0,0 +1,16 @@
"""Objects injections unittests."""
import unittest2 as unittest
from objects.injections import Injection
class InjectionTest(unittest.TestCase):
"""Injection test cases."""
def test_init(self):
"""Test Injection creation and initialization."""
injection = Injection('some_arg_name', 'some_value')
self.assertEqual(injection.name, 'some_arg_name')
self.assertEqual(injection.injectable, 'some_value')