Permalink
Browse files

For Python2.6 compatibility, do not use assertNone.

  • Loading branch information...
1 parent 42e25d1 commit b654a31006195f2e4d7420b96e440dcf009a8ad8 @mauritsvanrees mauritsvanrees committed Jul 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plone/api/docs/users.rst
View
6 src/plone/api/docs/users.rst
@@ -165,7 +165,7 @@ the user object you want to delete.
.. invisible-code-block:: python
- self.assertNone(api.user.get(username='unwanted'))
+ self.assertEqual(api.user.get(username='unwanted'), None)
.. code-block:: python
@@ -174,7 +174,7 @@ the user object you want to delete.
.. invisible-code-block:: python
- self.assertNone(api.user.get(username='unwanted'))
+ self.assertEqual(api.user.get(username='unwanted'), None)
.. _user_change_password_example:
@@ -195,7 +195,7 @@ If you don't pass in any password, a random one will be generated.
.. invisible-code-block:: python
- self.assertEqulas(user._getPassword(), password='newsecret')
+ self.assertEqual(user._getPassword(), password='newsecret')
.. code-block:: python

0 comments on commit b654a31

Please sign in to comment.