adding some tests

This commit is contained in:
Roman Mogilatov 2015-03-11 00:23:26 +02:00
parent f706d998e7
commit 54f35a5d35

View File

@ -11,6 +11,11 @@ class InjectionTest(unittest.TestCase):
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')
def test_value_with_scalar_injectable(self):
"""Test Injection value property."""
injection = Injection('some_arg_name', 'some_value')
self.assertEqual(injection.value, 'some_value')