python-dependency-injector/tests/test_injections.py
2015-03-10 16:12:42 +02:00

17 lines
447 B
Python

"""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')