-
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
016c44e
commit 5d34802
Showing
3 changed files
with
32 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Tests for the ThreatSource and ThreatSources classes | ||
""" | ||
import unittest | ||
|
||
from rail import ThreatSources | ||
|
||
class TestThreatSource(unittest.TestCase): | ||
""" | ||
Class to test a threat source | ||
""" | ||
def setUp(self): | ||
self.threat_sources = ThreatSources() | ||
self.threat_sources.new('test') | ||
|
||
def test_threat_sources(self): | ||
""" | ||
Test threat sources | ||
""" | ||
self.assertEqual(self.threat_sources['test']['name'], 'test') | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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