-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a shortcut that can be used in a unit test. Not the right appr…
…oach but gets it off the ground.
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import unittest | ||
from LnkAnalyser import lnkanalyser | ||
|
||
class TestLnkAnalyser(unittest.TestCase): | ||
|
||
def test_Init(self): | ||
self.assertEqual('foo'.upper(), 'FOO') | ||
|
||
def travis_ci_test(self): | ||
self.assertEqual(1, 1) | ||
def test_shortcut(self): | ||
shortcut = lnkanalyser.go("Desktop.lnk") | ||
|
||
print(shortcut["header_size"]) | ||
print(shortcut["link_class_id"]) | ||
print(shortcut["link_flags"]) | ||
print(shortcut["file_attributes"]) | ||
print(shortcut["creation_time_of_link_target"]) | ||
print(shortcut["access_time_of_link_target"]) | ||
print(shortcut["write_time_of_link_target"]) | ||
print(shortcut["target_file_size"]) | ||
print(shortcut["icon_index"]) | ||
print(shortcut["expected_window_state"]) | ||
print(shortcut["hot_key"]) | ||
print(shortcut["reserved_one"]) | ||
print(shortcut["reserved_two"]) | ||
print(shortcut["reserved_three"]) |