From 54f35a5d351a70f1b34dacd631542b79a33d45a5 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 11 Mar 2015 00:23:26 +0200 Subject: [PATCH] adding some tests --- tests/test_injections.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_injections.py b/tests/test_injections.py index dbfa6549..7fecdb34 100644 --- a/tests/test_injections.py +++ b/tests/test_injections.py @@ -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') +