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

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

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_configure_networks.py   fuel-main(Download)
 
            self.assertIn(
                'storage', s.interfaces[1].networks,
                'storage at eht1')
            self.assertIn(
                'management', s.interfaces[2].networks,
                'management at eht2')
            self.assertIn(
                'vm (fixed)', s.interfaces[2].networks,
                s.interfaces[1].networks_box).perform()
            self.assertIn(
                'floating', s.interfaces[1].networks,
                'Floating has been moved')
            ActionChains(browser.driver).drag_and_drop(
                s.interfaces[1].networks['floating'],
                s.interfaces[2].networks_box).perform()
            self.assertIn(
                'public', s.interfaces[2].networks,

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_adding_nodes.py   fuel-main(Download)
            self.assertEqual(len(n.nodes), 1, 'Nodes amount')
            self.assertEqual(n.nodes[0].name.text, name, 'Node name')
            self.assertIn(ROLE_CONTROLLER, n.nodes[0].roles.text, 'Node role')
 
    def test_adding_node_multiple_roles(self):
        with Nodes() as n:
            self.assertTrue(n.env_name.is_displayed())
            self.assertIn(ROLE_CONTROLLER, n.nodes[0].roles.text,
                          'Node first role')
            self.assertIn(ROLE_CINDER, n.nodes[0].roles.text,
                          'Node second role')
            self.assertIn(ROLE_CEPH, n.nodes[0].roles.text,
        time.sleep(1)
        with Nodes() as n:
            self.assertIn(ROLE_CONTROLLER, n.nodes[0].roles.text,
                          'Controller role')
            self.assertIn(ROLE_CINDER, n.nodes[0].roles.text,

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_environment.py   fuel-main(Download)
 
        cb = Environments().create_cluster_boxes[0]
        self.assertIn(OPENSTACK_CENTOS, cb.text)
        cb.click()
 
        with Nodes() as n:
            time.sleep(1)
            self.assertEqual(n.env_name.text, OPENSTACK_CENTOS)
            n.info_icon.click()
            self.assertIn('display: block;',
            self.assertIn('display: block;',
                          n.env_details.get_attribute('style'))
            self.assertIn(OPENSTACK_CENTOS, n.env_details.text)
            self.assertIn('New', n.env_details.text)
            self.assertIn('Multi-node', n.env_details.text)

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_networks.py   fuel-main(Download)
            n.ip_ranges[0].start.clear()
            n.ip_ranges[0].start.send_keys(' ')
            self.assertIn('Invalid IP range start',
                          n.ip_ranges[0].start.
                          find_element_by_xpath('../../..').text)
 
            n.ip_ranges[1].end.clear()
            n.ip_ranges[1].end.send_keys(' ')
            self.assertIn('Invalid IP range end',
                n.vlan_id.clear()
                n.vlan_id.send_keys(' ')
                self.assertIn('Invalid VLAN ID',
                              n.vlan_id.find_element_by_xpath('../../..').text)
                self._assert_save_verify_disabled()
            getattr(n, field).clear()
            getattr(n, field).send_keys(' ')
            self.assertIn('Invalid',
                          getattr(n, field).
                          find_element_by_xpath('../../..').text)
            n.verify_networks.click()
            self.assertIn(
                'At least two nodes are required',
                n.verification_alert.text,
                'Alert text contains "At least two nodes are required"')

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_env_wizard.py   fuel-main(Download)
            w.next.click()
            self.assertIn(
                'Environment name cannot be empty',
                w.name.find_element_by_xpath('..').text)
 
            w.next.click()
            time.sleep(1)
            self.assertIn('Environment with name "{}" already exists'.
                          format(name),
                          w.name.find_element_by_xpath('..').text)
            w.release.select_by_visible_text(OPENSTACK_RELEASE_REDHAT)
            w.next.click()
            self.assertIn('Invalid username',
                          w.redhat_username.find_element_by_xpath('..').text)
            self.assertIn('Invalid password',
                          w.redhat_password.find_element_by_xpath('..').text)
 
            w.license_rhn.click()
            w.next.click()
            self.assertIn('Invalid username',

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_roles.py   fuel-main(Download)
    def assertNodeInRoles(self, node, roles):
        for role in roles:
            self.assertIn(role, node.roles.text, "node's roles")
 
    def setUp(self):

src/f/u/fuel-main-HEAD/fuelweb_ui_test/tests/test_support.py   fuel-main(Download)
        time.sleep(4)
        browser.driver.switch_to_window(browser.driver.window_handles.pop())
        self.assertIn('http://software.mirantis.com/',
                      browser.driver.current_url)
 

src/d/j/django-flexisettings-0.2.5/tests/discovery.py   django-flexisettings(Download)
        import sys
        self.assertIn(
            os.path.join(flexisettings.settings.FLEXI_PROJECT_ROOT, 'apps'),
            sys.path
        )
    def test_discovery_templates(self):
        """Test templates folder discovery"""
        import flexisettings.settings
        self.assertIn(
            os.path.join(self.current_dir, self.test_folder, 'templates'),

src/d/j/django-flexisettings-HEAD/tests/discovery.py   django-flexisettings(Download)
        import sys
        self.assertIn(
            os.path.join(flexisettings.settings.FLEXI_PROJECT_ROOT, 'apps'),
            sys.path
        )
    def test_discovery_templates(self):
        """Test templates folder discovery"""
        import flexisettings.settings
        self.assertIn(
            os.path.join(self.current_dir, self.test_folder, 'templates'),

src/d/j/django-flexisettings-0.2.5/tests/imports.py   django-flexisettings(Download)
    def test_import_local(self):
        """Check if local settings was imported"""
        import flexisettings.settings
        self.assertIn(
            '.'.join([self.test_project, 'settings_t']),

  1 | 2  Next