def test_happy_path(self):
        response = {
            '_embedded': {
                'activation': {
                    'sharedSecret': 'some-secret'
                }
            }
        }

        secret = _get_shared_secret_from_response(response)
        self.assertEqual(response['_embedded']['activation']['sharedSecret'],
                         secret)
    def test_missing_secret(self):
        response = {"_embedded": {"activation": {}}}

        secret = _get_shared_secret_from_response(response)
        self.assertIsNone(secret)
    def test_happy_path(self):
        response = {"_embedded": {"activation": {"sharedSecret": "some-secret"}}}

        secret = _get_shared_secret_from_response(response)
        self.assertEqual(response["_embedded"]["activation"]["sharedSecret"], secret)
    def test_missing_secret(self):
        response = {'_embedded': {'activation': {}}}

        secret = _get_shared_secret_from_response(response)
        self.assertIsNone(secret)