<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Running browser in the middle of a Pylons test</title>
	<atom:link href="http://blog.pow.lt/2009/12/01/running-browser-in-the-middle-of-a-pylons-test/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pow.lt/2009/12/01/running-browser-in-the-middle-of-a-pylons-test/</link>
	<description>Pow! Wham, bam, kapow!</description>
	<lastBuildDate>Sat, 27 Feb 2010 21:39:41 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.pow.lt/2009/12/01/running-browser-in-the-middle-of-a-pylons-test/comment-page-1/#comment-14</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Mon, 07 Dec 2009 03:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pow.lt/?p=83#comment-14</guid>
		<description>Wait... capture and replay is unnecessary now that I think about it.</description>
		<content:encoded><![CDATA[<p>Wait&#8230; capture and replay is unnecessary now that I think about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.pow.lt/2009/12/01/running-browser-in-the-middle-of-a-pylons-test/comment-page-1/#comment-13</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Mon, 07 Dec 2009 03:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pow.lt/?p=83#comment-13</guid>
		<description>Consider submitting this as a patch (or even better, a fork/pull request): http://bitbucket.org/ianb/webtest/ (I think you can just use self.app for TestApp instead of pylons.test...)

You might even have something like a flag in TestApp, on_failure_serve, which would start the app if you get an unexpected 500 response, and then replay until that point.  (Well, capturing and replaying would be another feature I guess, but a cool feature, and doable -- though maybe not entirely within TestApp.)</description>
		<content:encoded><![CDATA[<p>Consider submitting this as a patch (or even better, a fork/pull request): <a href="http://bitbucket.org/ianb/webtest/" rel="nofollow">http://bitbucket.org/ianb/webtest/</a> (I think you can just use self.app for TestApp instead of pylons.test&#8230;)</p>
<p>You might even have something like a flag in TestApp, on_failure_serve, which would start the app if you get an unexpected 500 response, and then replay until that point.  (Well, capturing and replaying would be another feature I guess, but a cool feature, and doable &#8212; though maybe not entirely within TestApp.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Gedminas</title>
		<link>http://blog.pow.lt/2009/12/01/running-browser-in-the-middle-of-a-pylons-test/comment-page-1/#comment-11</link>
		<dc:creator>Marius Gedminas</dc:creator>
		<pubDate>Tue, 01 Dec 2009 19:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pow.lt/?p=83#comment-11</guid>
		<description>Nice!

Instead of importing urllib2 and relying on it to import urlparse into its namespace, I suggest you import urlparse directly.

I&#039;d also suggest moving the hardcoded port number (5001) into a ServingTestApp class attribute, just on general principles.  (Also it would let you do things like self.app.testing_port = 5002; self.app.serve() in parallel interactive pdb sessions, if you like that sort of multitasking.)</description>
		<content:encoded><![CDATA[<p>Nice!</p>
<p>Instead of importing urllib2 and relying on it to import urlparse into its namespace, I suggest you import urlparse directly.</p>
<p>I&#8217;d also suggest moving the hardcoded port number (5001) into a ServingTestApp class attribute, just on general principles.  (Also it would let you do things like self.app.testing_port = 5002; self.app.serve() in parallel interactive pdb sessions, if you like that sort of multitasking.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
