diff options
author | Bin Sun <bins@vmware.com> | 2018-04-09 10:39:16 +0800 |
---|---|---|
committer | Bin Sun <bins@vmware.com> | 2018-04-09 10:39:46 +0800 |
commit | ce1c7377566ef9f9626e0fc8405f424911bca4fc (patch) | |
tree | 478650693d96946ff4ff71ee51bc4caa2aa9d9a1 | |
parent | 06468b4f150640bcef9f103c42941ce04c48294f (diff) |
Add fake capacity test
Change-Id: Ice945e3d21de529cd7ffa5719a4f4b99d394def5
Issue-ID: MULTICLOUD-199
Signed-off-by: Bin Sun <bins@vmware.com>
-rw-r--r-- | vio/vio/tests/test_fake_nova_view.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_nova_view.py b/vio/vio/tests/test_fake_nova_view.py index d9a8149..c1c725d 100644 --- a/vio/vio/tests/test_fake_nova_view.py +++ b/vio/vio/tests/test_fake_nova_view.py @@ -140,3 +140,13 @@ class TestFakeFlavorList(unittest.TestCase): } resp = self.view.get(req, "abcd") self.assertEqual(200, resp.status_code) + + +class TestFakeCapacity(unittest.TestCase): + + def setUp(self): + self.view = views.FakeCapacity() + + def test_get_capacity(self): + resp = self.view.post(mock.Mock()) + self.assertEqual(200, resp.status_code) |