manila/manila/tests/api/views/test_share_replicas.py

21 lines
621 B
Python

import copy
import ddt
from manila.api.views import share_replicas
from manila.common import constants
from manila import test
from manila.tests.api.contrib import stubs
from manila.tests.api import fakes
@ddt.ddt
class ViewBuilderTestCase(test.TestCase):
def setUp(self):
super(ViewBuilderTestCase, self).setUp()
self.builder = share_replicas.ReplicationViewBuilder()
def test__collection_name(self):
self.assertEqual('share_replicas', self.builder._collection_name)
def test__collection_route_name(self):
self.assertEqual('share-replicas', self.builder._collection_name)