Exemplo n.º 1
0
    def test_get_should_return_different_instance_each_call(self):
        factory = SymbolMapFactory()
        obj1 = factory.get()
        obj2 = factory.get()

        assert type(obj1) is type(obj2)
        assert obj1 is not obj2
Exemplo n.º 2
0
    def test_get_should_return_different_instance_each_call(self):
        factory = SymbolMapFactory()
        obj1 = factory.get()
        obj2 = factory.get()

        assert type(obj1) is type(obj2)
        assert obj1 is not obj2
Exemplo n.º 3
0
 def test_get_should_return_instance_of_symbolMap(self):
     factory = SymbolMapFactory()
     assert isinstance(factory.get(), SymbolMap)
Exemplo n.º 4
0
 def test_get_should_return_instance_of_symbolMap(self):
     factory = SymbolMapFactory()
     assert isinstance(factory.get(), SymbolMap)