-
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.
- Loading branch information
1 parent
1ffd12b
commit a493440
Showing
6 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
Empty file.
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
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
Empty file.
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,11 +1,16 @@ | ||
import pwgrep.file_helper | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
from ..pwgrep import file_helper | ||
#import pwgrep | ||
print(__name__) | ||
|
||
def test_file_is_binary(): | ||
assert pwgrep.file_helper.file_is_binary('data/simple/helloworld') == True | ||
print(__name__) | ||
assert file_helper.file_is_binary('data/simple/helloworld') == True | ||
|
||
|
||
def test_file_is_text(): | ||
assert pwgrep.file_helper.file_is_binary('data/simple/zen_of_python.txt')\ | ||
assert file_helper.file_is_binary('data/simple/zen_of_python.txt')\ | ||
== False | ||
|
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