Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(0)  |  Derive(16)  |  Import(0)

src/s/a/sahara-HEAD/sahara/tests/unit/utils/openstack/test_base.py   sahara(Download)
class TestBase(ub.SaharaTestCase):
 
    def test_url_for_regions(self):
        service_catalog = (
            '[{"endpoints": '

src/s/a/sahara-HEAD/sahara/tests/unit/topology/test_topology.py   sahara(Download)
class TopologyTestCase(base.SaharaTestCase):
    def setUp(self):
        context.set_ctx(context.Context(None, None, None, None))
 
    def test_core_config(self):

src/s/a/sahara-HEAD/sahara/tests/unit/swift/test_swift_helper.py   sahara(Download)
class SwiftIntegrationTestCase(base.SaharaTestCase):
 
    @mock.patch('sahara.utils.openstack.base.url_for')
    def test_get_swift_configs(self, authUrlConfig):
        self.setup_context(tenant_name='test_tenant')

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/vanilla/v2_3_0/test_validation.py   sahara(Download)
class ValidationTest(base.SaharaTestCase):
    def setUp(self):
        super(ValidationTest, self).setUp()
        self.pl = p.VanillaProvider()
 

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/vanilla/v2_3_0/test_utils.py   sahara(Download)
class UtilsTestCase(base.SaharaTestCase):
    @mock.patch('sahara.plugins.vanilla.utils.get_namenode')
    def test_datanodes_status(self, nn):
        report = files.get_file_text(
            'tests/unit/plugins/vanilla/v2_3_0/resources/dfs-report.txt')

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/vanilla/v2_3_0/test_configs.py   sahara(Download)
class VanillaTwoConfigTestCase(base.SaharaTestCase):
    def test_get_hadoop_dirs(self):
        ng = FakeNG(storage_paths=['/vol1', '/vol2'])
        dirs = c._get_hadoop_dirs(ng)
        expected = {

src/s/a/sahara-HEAD/sahara/tests/unit/plugins/hdp/test_ambariplugin.py   sahara(Download)
class AmbariPluginTest(sahara_base.SaharaTestCase):
    def test_get_node_processes(self):
        plugin = ap.AmbariPlugin()
        service_components = plugin.get_node_processes('1.3.2')
 

src/s/a/sahara-2014.1/sahara/tests/unit/topology/test_topology.py   sahara(Download)
class TopologyTestCase(base.SaharaTestCase):
    def setUp(self):
        context.set_ctx(context.Context(None, None, None, None))
 
    def test_core_config(self):

src/s/a/sahara-2014.1/sahara/tests/unit/swift/test_swift_helper.py   sahara(Download)
class SwiftIntegrationTestCase(base.SaharaTestCase):
 
    @mock.patch('sahara.utils.openstack.base.url_for')
    def test_get_swift_configs(self, authUrlConfig):
        self.setup_context(tenant_name='test_tenant')

src/s/a/sahara-2014.1/sahara/tests/unit/plugins/vanilla/v2_3_0/test_validation.py   sahara(Download)
class ValidationTest(base.SaharaTestCase):
    def setUp(self):
        super(ValidationTest, self).setUp()
        self.pl = p.VanillaProvider()
 

  1 | 2  Next