<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silver Stripe Blog &#187; Mocks</title>
	<atom:link href="http://toolsforagile.com/blog/archives/category/mocks/feed" rel="self" type="application/rss+xml" />
	<link>http://toolsforagile.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 13:00:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SilverMock : Open Source Mock library for Python</title>
		<link>http://toolsforagile.com/blog/archives/85</link>
		<comments>http://toolsforagile.com/blog/archives/85#comments</comments>
		<pubDate>Tue, 18 Dec 2007 18:34:18 +0000</pubDate>
		<dc:creator>siddharta</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Mocks]]></category>
		<category><![CDATA[Tool]]></category>

		<guid isPermaLink="false">http://www.silverstripesoftware.com/blog/archives/85</guid>
		<description><![CDATA[
			
				
			
		
A new release! SilverMock is a python mock object library that was developed for internal use at Silver Stripe Software. It is now being released under the MIT License. If you are looking for a simple, lightweight mock object library for Python, then check out SilverMock.
I first did a demo of SilverMock during the 2nd [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftoolsforagile.com%2Fblog%2Farchives%2F85&amp;layout=standard&amp;show_faces=no&amp;width=250&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:250px; height:25px"></iframe><div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftoolsforagile.com%2Fblog%2Farchives%2F85"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftoolsforagile.com%2Fblog%2Farchives%2F85&amp;source=silvercatalyst&amp;style=compact&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>A new release! <a href="http://www.silverstripesoftware.com/opensource/" title="SilverMock : Open Source Mock library for Python">SilverMock</a> is a python mock object library that was developed for internal use at Silver Stripe Software. It is now being released under the <a href="http://www.opensource.org/licenses/mit-license.php" title="MIT License">MIT License</a>. If you are looking for a simple, lightweight mock object library for Python, then check out SilverMock.</p>
<p>I first did a demo of SilverMock during the <a href="http://www.silverstripesoftware.com/blog/archives/84" title="2nd Chennai Agile User Group Meet">2nd Chennai Agile User Group meet</a> earlier this month to demonstrate writing unit tests with mock objects. In the discussion, we though it might be useful to create a screencast of the demo. While preparing the screencast, I though why not release SilverMock under an open source license? So thats where we are now.</p>
<p>If you go to the <a href="http://www.silverstripesoftware.com/opensource/" title="Silver Mock">SilverMock page</a>, you&#8217;ll find the first part of the screencast showing how you can use mock objects during unit tests. Since the screencast uses SilverMock, it doubles up as a bit of documentation as well <img src='http://toolsforagile.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The idea behind SilverMock is to make mock objects as simple as possible. The whole library is under 200 lines of python code (under 400 is you include the unit tests), so it&#8217;s very lightweight. The API is as straighforward and readable as it gets. IMHO, you read a line like ShouldBeCalled(&#8220;count&#8221;).with_args((&#8220;abcd&#8221;,)).and_return(4) and you immediately know what is expected to happen. If you find all this intriguing, then head over to the <a href="http://www.silverstripesoftware.com/opensource/" title="Silver Mock">SilverMock page</a>, where you can download SilverMock, check out the screencast and see an example of a typical unit test that uses SilverMock. Hope you find it useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://toolsforagile.com/blog/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
