mirror of https://github.com/docker/docker-py.git
11 lines
370 B
Python
11 lines
370 B
Python
import unittest
|
|
|
|
from .fake_api_client import make_fake_client
|
|
from .fake_api import FAKE_CONFIG_NAME
|
|
|
|
class CreateConfigsTest(unittest.TestCase):
|
|
def test_create_config(self):
|
|
client = make_fake_client()
|
|
config = client.configs.create(name="super_config", data="config")
|
|
assert config.__repr__() == "<Config: '{}'>".format(FAKE_CONFIG_NAME)
|