Permalink
Browse files

Add test for to specify name of an environment variable.

  • Loading branch information...
1 parent 410329f commit aa30a66626d2b02706c5c31804461821a8f8bc74 @takluyver committed Nov 22, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 IPython/utils/tests/test_text.py
@@ -109,3 +109,5 @@ def test_dollar_formatter():
nt.assert_equals(s, "12/hello")
s = f.format("$n $$HOME", **ns)
nt.assert_equals(s, "12 $HOME")
+ s = f.format("${foo}", foo="HOME")
+ nt.assert_equals(s, "$HOME")

0 comments on commit aa30a66

Please sign in to comment.