• Home
  • Raw
  • Download

Lines Matching full:bar

55         tester('ntpath.splitext("foo.bar.ext")', ('foo.bar', '.ext'))
56 tester('ntpath.splitext("xx/foo.bar.ext")', ('xx/foo.bar', '.ext'))
57 tester('ntpath.splitext("xx\\foo.bar.ext")', ('xx\\foo.bar', '.ext'))
61 tester('ntpath.splitdrive("c:\\foo\\bar")',
62 ('c:', '\\foo\\bar'))
63 tester('ntpath.splitdrive("c:/foo/bar")',
64 ('c:', '/foo/bar'))
65 tester('ntpath.splitdrive("\\\\conky\\mountpoint\\foo\\bar")',
66 ('\\\\conky\\mountpoint', '\\foo\\bar'))
67 tester('ntpath.splitdrive("//conky/mountpoint/foo/bar")',
68 ('//conky/mountpoint', '/foo/bar'))
69 tester('ntpath.splitdrive("\\\\\\conky\\mountpoint\\foo\\bar")',
70 ('', '\\\\\\conky\\mountpoint\\foo\\bar'))
71 tester('ntpath.splitdrive("///conky/mountpoint/foo/bar")',
72 ('', '///conky/mountpoint/foo/bar'))
73 tester('ntpath.splitdrive("\\\\conky\\\\mountpoint\\foo\\bar")',
74 ('', '\\\\conky\\\\mountpoint\\foo\\bar'))
75 tester('ntpath.splitdrive("//conky//mountpoint/foo/bar")',
76 ('', '//conky//mountpoint/foo/bar'))
78 self.assertEqual(ntpath.splitdrive('//conky/MOUNTPOİNT/foo/bar'),
79 ('//conky/MOUNTPOİNT', '/foo/bar'))
82 tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))
83 tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")',
84 ('\\\\conky\\mountpoint\\foo', 'bar'))
97 tester('ntpath.isabs("\\foo\\bar")', 1)
202 env["foo"] = "bar"
206 tester('ntpath.expandvars("$foo bar")', "bar bar")
207 tester('ntpath.expandvars("${foo}bar")', "barbar")
208 tester('ntpath.expandvars("$[foo]bar")', "$[foo]bar")
209 tester('ntpath.expandvars("$bar bar")', "$bar bar")
210 tester('ntpath.expandvars("$?bar")', "$?bar")
211 tester('ntpath.expandvars("$foo}bar")', "bar}bar")
215 tester('ntpath.expandvars("$bar$bar")', "$bar$bar")
216 tester('ntpath.expandvars("%foo% bar")', "bar bar")
217 tester('ntpath.expandvars("%foo%bar")', "barbar")
220 tester('ntpath.expandvars("%?bar%")', "%?bar%")
221 tester('ntpath.expandvars("%foo%%bar")', "bar%bar")
222 tester('ntpath.expandvars("\'%foo%\'%bar")', "\'%foo%\'%bar")
223 tester('ntpath.expandvars("bar\'%foo%")', "bar\'%foo%")
234 check('$spam bar', '%s bar' % nonascii)
235 check('$%s bar' % nonascii, '$%s bar' % nonascii)
236 check('${spam}bar', '%sbar' % nonascii)
237 check('${%s}bar' % nonascii, 'ham%sbar' % nonascii)
238 check('$spam}bar', '%s}bar' % nonascii)
239 check('$%s}bar' % nonascii, '$%s}bar' % nonascii)
240 check('%spam% bar', '%s bar' % nonascii)
241 check('%{}% bar'.format(nonascii), 'ham%s bar' % nonascii)
242 check('%spam%bar', '%sbar' % nonascii)
243 check('%{}%bar'.format(nonascii), 'ham%sbar' % nonascii)
271 tester('ntpath.expanduser("~test\\foo\\bar")',
272 'C:\\idle\\test\\foo\\bar')
273 tester('ntpath.expanduser("~test/foo/bar")',
274 'C:\\idle\\test/foo/bar')
275 tester('ntpath.expanduser("~\\foo\\bar")',
276 'C:\\idle\\eric\\foo\\bar')
277 tester('ntpath.expanduser("~/foo/bar")',
278 'C:\\idle\\eric/foo/bar')
300 tester('ntpath.relpath("c:/foo/bar/bat", "c:/x/y")', '..\\..\\foo\\bar\\bat')
303 tester('ntpath.relpath("/foo/bar/bat", "/x/y/z")', '..\\..\\..\\foo\\bar\\bat')
304 tester('ntpath.relpath("/foo/bar/bat", "/foo/bar")', 'bat')
305 tester('ntpath.relpath("/foo/bar/bat", "/")', 'foo\\bar\\bat')
306 tester('ntpath.relpath("/", "/foo/bar/bat")', '..\\..\\..')
307 tester('ntpath.relpath("/foo/bar/bat", "/x")', '..\\foo\\bar\\bat')
308 tester('ntpath.relpath("/x", "/foo/bar/bat")', '..\\..\\..\\x')
340 check(['C:\\Program Files', 'C:\\Program Files\\Bar'],
342 check(['C:\\Program Files\\Foo', 'C:\\Program Files\\Bar'],
347 check(['C:\\Program Files\\Foo', 'C:/Program Files/Bar'],
349 check(['C:\\Program Files\\Foo', 'c:/program files/bar'],
351 check(['c:/program files/bar', 'C:\\Program Files\\Foo'],