Пример #1
0
    def test_accepts_provided_access_key(self):
        key = 'abcd-1234-5678'
        session = SauceSession()

        session.access_key = key

        assert session.access_key == key
Пример #2
0
    def test_raises_exception_if_no_access_key_set(self):
        session = SauceSession()

        session.access_key = None

        with pytest.raises(KeyError):
            session.start()