summaryrefslogtreecommitdiffstats
path: root/tests/unit/fake/__init__.py
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2012-06-11 17:05:44 -0400
committerSean Dague <sdague@linux.vnet.ibm.com>2012-06-12 09:24:16 -0400
commitb744609fb5c714acf8282f92933d80a48303f833 (patch)
tree9d70426378a9fca19840403aca4fc3a2b06c6aba /tests/unit/fake/__init__.py
parent2d4e7b3177f658a2437297f9495211d0075480b0 (diff)
downloadoslo-b744609fb5c714acf8282f92933d80a48303f833.tar.gz
oslo-b744609fb5c714acf8282f92933d80a48303f833.tar.xz
oslo-b744609fb5c714acf8282f92933d80a48303f833.zip
add more realistic unit tests for importutils
Add realistic tests including objects with and without args to importutils. Change-Id: If23db5ef80cdfa4be95e95b90e647ac2455fffc8
Diffstat (limited to 'tests/unit/fake/__init__.py')
-rw-r--r--tests/unit/fake/__init__.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/unit/fake/__init__.py b/tests/unit/fake/__init__.py
new file mode 100644
index 0000000..4941366
--- /dev/null
+++ b/tests/unit/fake/__init__.py
@@ -0,0 +1,25 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2012 IBM
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+
+class FakeDriver():
+ def __init__(self, first_arg=True):
+ self.first_arg = first_arg
+
+
+class FakeDriver2():
+ def __init__(self, first_arg):
+ self.first_arg = first_arg