Пример #1
0
 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')
Пример #2
0
 def test__resubst_3(self):
     """_resubst('foo $bar', {'bar' : 'XBAR'}) should return 'foo XBAR'"""
     self.assertEqual(tested._resubst('foo $bar', {'bar' : 'XBAR'}), 'foo XBAR')
Пример #3
0
 def test__resubst_1(self):
     """_resubst('foo bar') should return 'foo bar'"""
     self.assertEqual(tested._resubst('foo bar'), 'foo bar')
Пример #4
0
 def test__resubst_2(self):
     """_resubst('foo bar', {'foo' : 'XFOO'}) should return 'foo bar'"""
     self.assertEqual(tested._resubst('foo bar', {'foo' : 'XFOO'}), 'foo bar')
Пример #5
0
 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')