Esempio n. 1
0
    def test_runs_on_eu_central(self):
        session = SauceSession()
        session.data_center = 'eu-central'

        session.start()

        assert session.driver.session_id
        assert "eu-central-1" in session.remote_url
Esempio n. 2
0
    def test_runs_on_us_east(self):
        options = SauceOptions()
        options.platform_name = 'Linux'

        session = SauceSession(options)
        session.data_center = 'us-east'

        session.start()

        assert session.driver.session_id
        assert "us-east-1" in session.remote_url
    def test_raises_exception_if_data_center_is_invalid(self):
        session = SauceSession()

        with pytest.raises(ValueError):
            session.data_center = 'invalid'
    def test_overrides_default_value_for_data_center(self):
        session = SauceSession()

        session.data_center = 'eu-central'

        assert "eu-central-1" in session.remote_url