diff options
| author | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-16 17:56:40 -0400 |
|---|---|---|
| committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-16 17:56:40 -0400 |
| commit | cc2d4728d32d016ef803d0def456cac6e315e8fa (patch) | |
| tree | 730830be188aa486537c0100f9510dc5cafb18de /nova/tests | |
| parent | 3459cfb89bd90605e54fd1fb28b8b38089f3e236 (diff) | |
get started testing
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/image/__init__.py | 0 | ||||
| -rw-r--r-- | nova/tests/image/test_glance.py | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/nova/tests/image/__init__.py b/nova/tests/image/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/nova/tests/image/__init__.py diff --git a/nova/tests/image/test_glance.py b/nova/tests/image/test_glance.py new file mode 100644 index 000000000..b568f593d --- /dev/null +++ b/nova/tests/image/test_glance.py @@ -0,0 +1,18 @@ +import unittest + +from nova.image import glance + +class StubGlanceClient(object): + + def __init__(self, images): + self._images = images + + def get_image_meta(id): + return self._images[id] + +class TestGlance(unittest.TestCase): + + def test(self): + images = {'xyz': "image"} + client = StubGlanceClient(images) + service = glance.GlanceImageService(client) |
