# -*- coding: utf-8 -*-
from flask import Flask
from flask.ext.factory import Factory


def test_basic():
    factory = Factory(__name__)
    app = factory()
    assert type(app) == Flask


def test_with_config():
    config = {'SECRET_KEY': b'wow3very2secret0'}
    factory = Factory(__name__)
    app = factory(config=config)
    assert app.config['SECRET_KEY'] == config['SECRET_KEY']
    config['SECRET_KEY'] = b'not-a-secret-anymore'
    assert app.config['SECRET_KEY'] == b'wow3very2secret0'

@@ -181,16 +181,66 @@
 = Flask%0A
+    assert app.import_name == factory.import_name%0A
 %0A%0Adef te

Fix a test