Description: <short summary of the patch>
 This patch fixes a build issue that started to occur as upstream mock has
 re-organized its internal layout. The issue is that padme needs to patch (fix)
 bugs in mock that are present on certain versions (especially in released
 versions of python that have broken unittest.mock) and the patching code does
 mess with some of the mock internals.
Author: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Origin: upstream
Bug: https://github.com/zyga/padme/issues/15
Forwarded: not-needed
Last-Update: 2015-09-02

--- python-padme-1.1.1.orig/padme/tests.py
+++ python-padme-1.1.1/padme/tests.py
@@ -38,7 +38,10 @@ if sys.version_info[0:2] >= (3, 4):
     from unittest import mock
 else:
     import unittest2 as unittest
-    import mock
+    try:
+        import mock.mock as mock
+    except ImportError:
+        import mock
 
 
 # https://code.google.com/p/mock/issues/detail?id=247
