Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

For Python2.6 compatibility, do not use assertNone.

  • Loading branch information...
commit b654a31006195f2e4d7420b96e440dcf009a8ad8 1 parent 42e25d1
Maurits van Rees mauritsvanrees authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plone/api/docs/users.rst
6 src/plone/api/docs/users.rst
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.