def test_negative_for_normal_singleton_with_class_reference(self):
    ' Negative test for @singleton with class_reference provided for the constructor '
    try:

        class SampleDependencyInjection(object):
            pass

        @singleton(SampleDependencyInjection)
        class SuperDummyClass(TestDecoratorCommonSingletonClass.DummyTest):

            def __init__(self, dependency_injection):
                super(self.__class__, self).__init__()
                self.dependency_injection = dependency_injection
        self.assertTrue(False, 'Singleton Class: Passed the initialization as expected.')
    except SingletonInitializationException:
        self.assertTrue(False, 'Singleton Class: Failed the initialization with known-yet-unexpected exception.')
    except TypeError:
        self.assertTrue(True, 'Singleton Class: Failed the initialization with expected exception.')
Negative test for @singleton with class_reference provided for the constructor
def test_negative_for_normal_singleton_with_class_reference(self):
    '  '
    try:

        class SampleDependencyInjection(object):
            pass

        @singleton(SampleDependencyInjection)
        class SuperDummyClass(TestDecoratorCommonSingletonClass.DummyTest):

            def __init__(self, dependency_injection):
                super(self.__class__, self).__init__()
                self.dependency_injection = dependency_injection
        self.assertTrue(False, 'Singleton Class: Passed the initialization as expected.')
    except SingletonInitializationException:
        self.assertTrue(False, 'Singleton Class: Failed the initialization with known-yet-unexpected exception.')
    except TypeError:
        self.assertTrue(True, 'Singleton Class: Failed the initialization with expected exception.')