Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mindflayer committed Jan 22, 2016
1 parent 3ef2c13 commit 0e73043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ Using pip::
Quick example
=============
Let's create a new virtualenv with all we need::

$ virtualenv example
$ source example/bin/activate
$ pip install pytest requests mocket

As second step, we create an `example.py` file as the following one:: python
As second step, we create an `example.py` file as the following one::

from unittest import TestCase
import json
Expand Down Expand Up @@ -62,6 +64,7 @@ As second step, we create an `example.py` file as the following one:: python
self.assertEqual(response, response_to_mock)

Let's fire our example test::

$ py.test example.py::Example::test_json

Video presentation
Expand Down

0 comments on commit 0e73043

Please sign in to comment.