summaryrefslogtreecommitdiff
path: root/tests/unit/models_secrets_test.py
blob: 4ccf4c638504c10dfb28dfe29a0cfe295084bf66 (plain)
1
2
3
4
5
6
7
8
9
10
11
import unittest

from .fake_api_client import make_fake_client
from .fake_api import FAKE_SECRET_NAME


class CreateServiceTest(unittest.TestCase):
    def test_secrets_repr(self):
        client = make_fake_client()
        secret = client.secrets.create(name="super_secret", data="secret")
        assert secret.__repr__() == "<Secret: '{}'>".format(FAKE_SECRET_NAME)