Extract docker URL logic, use it in tests as well

This commit is contained in:
Aanand Prasad 2013-12-31 12:37:17 +00:00
commit 9ed6538693
4 changed files with 32 additions and 32 deletions

View file

@ -1,5 +1,4 @@
from fig.project import Project
from fig.service import Service
from .testcases import DockerClientTestCase
@ -57,7 +56,7 @@ class ProjectTest(DockerClientTestCase):
self.assertEqual(len(unstarted), 2)
self.assertEqual(unstarted[0][0], web)
self.assertEqual(unstarted[1][0], db)
self.assertEqual(len(web.containers(stopped=True)), 2)
self.assertEqual(len(web.containers(stopped=True)), 1)
self.assertEqual(len(db.containers(stopped=True)), 1)
def test_up(self):