def test__resubst_5(self): """_resubst('$foo $bar', {'foo' : '$bar', 'bar' : 'XBAR'}) should return '$bar XBAR'""" self.assertEqual(tested._resubst('$foo $bar', {'foo' : '$bar', 'bar' : 'XBAR'}), '$bar XBAR')
def test__resubst_3(self): """_resubst('foo $bar', {'bar' : 'XBAR'}) should return 'foo XBAR'""" self.assertEqual(tested._resubst('foo $bar', {'bar' : 'XBAR'}), 'foo XBAR')
def test__resubst_1(self): """_resubst('foo bar') should return 'foo bar'""" self.assertEqual(tested._resubst('foo bar'), 'foo bar')
def test__resubst_2(self): """_resubst('foo bar', {'foo' : 'XFOO'}) should return 'foo bar'""" self.assertEqual(tested._resubst('foo bar', {'foo' : 'XFOO'}), 'foo bar')
def test__resubst_8(self): """_resubst('${foo} ${bar}', {'foo' : '${bar}', 'bar' : 'XBAR'}) should return '${bar} XBAR'""" self.assertEqual(tested._resubst('${foo} ${bar}', {'foo' : '${bar}', 'bar' : 'XBAR'}), '${bar} XBAR')