Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: third_party/twisted_8_1/twisted/test/test_shortcut.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 """Test win32 shortcut script
2 """
3
4 from twisted.trial import unittest
5
6 import os
7 if os.name == 'nt':
8
9 from twisted.python import shortcut
10 import os.path
11 import sys
12
13 class ShortcutTest(unittest.TestCase):
14 def testCreate(self):
15 s1=shortcut.Shortcut("test_shortcut.py")
16 tempname=self.mktemp() + '.lnk'
17 s1.save(tempname)
18 self.assert_(os.path.exists(tempname))
19 sc=shortcut.open(tempname)
20 self.assert_(sc.GetPath(0)[0].endswith('test_shortcut.py'))
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/test/test_roots.py ('k') | third_party/twisted_8_1/twisted/test/test_sip.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698