def test_positive_using_decorator_with_primitive_parameters(self):
    ' Test if the target class without a singleton attribute but using a decorator with primitive parameters. '
    try:

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

            def __init__(self, init_number):
                super(self.__class__, self).__init__()
                self.number = init_number
        self.assertTrue(True, 'Singleton Class: Passed the initialization as expected.')
    except SingletonInitializationException:
        self.assertTrue(False, 'Singleton Class: Failed the initialization with known exception.')
    self.assertIsInstance(SuperDummyClass.instance(), SuperDummyClass)
    SuperDummyClass.instance().take_action()
    self.assertEqual(SuperDummyClass.instance().get_number(), 11)
    SuperDummyClass.instance().take_action()
    self.assertEqual(SuperDummyClass.instance().get_number(), 12)
Test if the target class without a singleton attribute but using a decorator with primitive parameters.
def test_positive_using_decorator_with_primitive_parameters(self):
    '  '
    try:

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

            def __init__(self, init_number):
                super(self.__class__, self).__init__()
                self.number = init_number
        self.assertTrue(True, 'Singleton Class: Passed the initialization as expected.')
    except SingletonInitializationException:
        self.assertTrue(False, 'Singleton Class: Failed the initialization with known exception.')
    self.assertIsInstance(SuperDummyClass.instance(), SuperDummyClass)
    SuperDummyClass.instance().take_action()
    self.assertEqual(SuperDummyClass.instance().get_number(), 11)
    SuperDummyClass.instance().take_action()
    self.assertEqual(SuperDummyClass.instance().get_number(), 12)