Lines Matching refs:expandvars
356 expandvars = self.pathmodule.expandvars
362 self.assertEqual(expandvars("foo"), "foo")
363 self.assertEqual(expandvars("$foo bar"), "bar bar")
364 self.assertEqual(expandvars("${foo}bar"), "barbar")
365 self.assertEqual(expandvars("$[foo]bar"), "$[foo]bar")
366 self.assertEqual(expandvars("$bar bar"), "$bar bar")
367 self.assertEqual(expandvars("$?bar"), "$?bar")
368 self.assertEqual(expandvars("$foo}bar"), "bar}bar")
369 self.assertEqual(expandvars("${foo"), "${foo")
370 self.assertEqual(expandvars("${{foo}}"), "baz1}")
371 self.assertEqual(expandvars("$foo$foo"), "barbar")
372 self.assertEqual(expandvars("$bar$bar"), "$bar$bar")
374 self.assertEqual(expandvars(b"foo"), b"foo")
375 self.assertEqual(expandvars(b"$foo bar"), b"bar bar")
376 self.assertEqual(expandvars(b"${foo}bar"), b"barbar")
377 self.assertEqual(expandvars(b"$[foo]bar"), b"$[foo]bar")
378 self.assertEqual(expandvars(b"$bar bar"), b"$bar bar")
379 self.assertEqual(expandvars(b"$?bar"), b"$?bar")
380 self.assertEqual(expandvars(b"$foo}bar"), b"bar}bar")
381 self.assertEqual(expandvars(b"${foo"), b"${foo")
382 self.assertEqual(expandvars(b"${{foo}}"), b"baz1}")
383 self.assertEqual(expandvars(b"$foo$foo"), b"barbar")
384 self.assertEqual(expandvars(b"$bar$bar"), b"$bar$bar")
390 expandvars = self.pathmodule.expandvars
392 self.assertEqual(expandvars(value), expected)