Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* renaming project * Fixing travis yml * Back to full coverage
- Loading branch information
Alex Kahan
committed
Jan 12, 2017
1 parent
b172c7b
commit 6a3ba46
Showing
5 changed files
with
47 additions
and
22 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
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,22 @@ | ||
from backends.backend_base import Backend | ||
from unittest import TestCase | ||
|
||
|
||
class BackendTestCase(TestCase): | ||
|
||
def setUp(self): | ||
self.backend = Backend() | ||
|
||
def test_not_implemented(self): | ||
|
||
with self.assertRaises(NotImplementedError): | ||
self.backend.get_cache('somekey') | ||
|
||
with self.assertRaises(NotImplementedError): | ||
self.backend.set_cache('somekey', 'somevalue') | ||
|
||
with self.assertRaises(NotImplementedError): | ||
self.backend.invalidate_key('somekey') | ||
|
||
with self.assertRaises(NotImplementedError): | ||
self.backend.set_cache_and_expire('somekey', 'somevalue', 'time') |
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