def test_w_urchin(self):
     from karlserve.scripts.main import main
     app = self.make_app()
     main(['karlserve', '-C', self.inifile, 'settings', 'set', 'test1',
           'urchin.account', 'UA-XXXXX'], out=DummyOut())
     app = self.make_app()
     response = self.login_and_make_a_blog_post(app, '/test1')
     self.assertTrue('UA-XXXXX' in str(response), str(response))
 def test_w_customization_package_imperative(self):
     from karlserve.scripts.main import main
     from karlserve.tests import application as fixture
     fixture.configured = False
     app = self.make_app()
     main(['karlserve', '-C', self.inifile, 'settings', 'set', 'test1',
           'package', 'karlserve.tests'], out=DummyOut())
     self.login_and_make_a_blog_post(app, '/test1')
     self.assertTrue(fixture.configured)