dccdd02e48
Change-Id: Id7d110110f238077630c9b9ee4d643654844dd3e
20 lines
513 B
Python
20 lines
513 B
Python
from novaclient.v1_1 import certs
|
|
from tests import utils
|
|
from tests.v1_1 import fakes
|
|
|
|
|
|
cs = fakes.FakeClient()
|
|
|
|
|
|
class FlavorsTest(utils.TestCase):
|
|
|
|
def test_create_cert(self):
|
|
cert = cs.certs.create()
|
|
cs.assert_called('POST', '/os-certificates')
|
|
self.assertTrue(isinstance(cert, certs.Certificate))
|
|
|
|
def test_get_root_cert(self):
|
|
cert = cs.certs.get()
|
|
cs.assert_called('GET', '/os-certificates/root')
|
|
self.assertTrue(isinstance(cert, certs.Certificate))
|