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
def test_get_should_return_instance_of_symbolMap(self): factory = SymbolMapFactory() assert isinstance(factory.get(), SymbolMap)