Permalink
Browse files

Clean up README a bit

  • Loading branch information...
1 parent 14a1877 commit 6c3748dec869e95963ccf545cf0b64e600d869a6 @boydjj boydjj committed Feb 7, 2013
Showing with 13 additions and 9 deletions.
  1. +13 −9 README.rst
View
@@ -7,15 +7,19 @@ Using mock-django objects
-------------------------
Inside your virtualenv::
->>> from django.conf import settings # required to confince Django we've properly configured
->>> settings.configure()
->>> from mock_django.query import QuerySetMock
->>> class Post(object): pass
->>> qs = QuerySetMock(Post, 1, 2, 3)
->>> list(qs.all())
-[1, 2, 3]
->>> qs.count()
-3
+ >>> from django.conf import settings
+ >>> settings.configure() # required to convince Django it's properly configured
+ >>> from mock_django.query import QuerySetMock
+ >>> class Post(object): pass
+ >>> qs = QuerySetMock(Post, 1, 2, 3)
+ >>> list(qs.all())
+ [1, 2, 3]
+ >>> qs.count()
+ 3
+ >>> qs.all().filter()
+ [1, 2, 3]
+
+See tests for more examples.
Testing

0 comments on commit 6c3748d

Please sign in to comment.