Write simple Singleton. Write Singleton which returns the same object every time. You can use the implementation you want. first_object = Singleton(name='test1') second_object = Singleton(name='test2') print(first_object.name == second_object.name)