Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
9cf3f758
Commit
9cf3f758
authored
Jan 31, 2016
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test cases for
https://github.com/plusvic/yara/issues/369
parent
cd7100cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests.py
tests.py
+12
-0
No files found.
tests.py
View file @
9cf3f758
...
...
@@ -392,6 +392,18 @@ class TestYara(unittest.TestCase):
'rule test { condition: 1 | 3 ^ 3 == (1 | 3) ^ 3}'
])
def
testSyntax
(
self
):
self
.
assertSyntaxError
([
'rule test { strings: $a = "a" $a = "a" condition: all of them }'
])
def
testAnonymousStrings
(
self
):
self
.
assertTrueRules
([
'rule test { strings: $ = "a" $ = "b" condition: all of them }'
,
],
"ab"
)
def
testStrings
(
self
):
self
.
assertTrueRules
([
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment