Skip to content

Commit

Permalink
Update tests to match latest version of docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cmihai committed May 4, 2016
1 parent 5738e4f commit eff771b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_docktree.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_single_image():
sh.docker(sh.cat('empty.tar'), 'import', '-', 'footest')
f = StringIO()
Docktree(restrict='footest', file=f).draw_tree()
assert re.match(u'└─ [a-f0-9]{12} footest:latest\n', f.getvalue())
assert re.match(u'└─ sha256:[a-f0-9]{5} footest:latest\n', f.getvalue())


def test_two_images():
Expand All @@ -36,5 +36,5 @@ def test_two_images():
f = StringIO()
Docktree(restrict='footest', file=f).draw_tree()
assert re.match(
u'└─ [a-f0-9]{12} footest:latest\n' +
u' └─ [a-f0-9]{12} bartest:latest\n', f.getvalue())
u'└─ sha256:[a-f0-9]{5} footest:latest\n' +
u' └─ sha256:[a-f0-9]{5} bartest:latest\n', f.getvalue())

0 comments on commit eff771b

Please sign in to comment.