Create links when creating containers

This commit is contained in:
Ben Firshman 2013-12-09 21:39:11 +00:00
commit 9a81623581
4 changed files with 34 additions and 2 deletions

View file

@ -18,12 +18,13 @@ class ServiceTestCase(TestCase):
self.client.kill(c['Id'])
self.client.remove_container(c['Id'])
def create_service(self, name):
def create_service(self, name, **kwargs):
return Service(
name=name,
client=self.client,
image="ubuntu",
command=["/bin/sleep", "300"],
**kwargs
)