Test for NullConfigStorage
This commit is contained in:
parent
e1b357137a
commit
cded6c2f08
@ -0,0 +1,14 @@
|
|||||||
|
from unittest import TestCase
|
||||||
|
from cartodb_services.refactor.storage.null_config import NullConfigStorage
|
||||||
|
from cartodb_services.refactor.core.interfaces import ConfigBackendInterface
|
||||||
|
|
||||||
|
|
||||||
|
class TestNullConfigStorage(TestCase):
|
||||||
|
|
||||||
|
def test_is_a_config_backend(self):
|
||||||
|
null_config = NullConfigStorage()
|
||||||
|
assert isinstance(null_config, ConfigBackendInterface)
|
||||||
|
|
||||||
|
def test_returns_none_regardless_of_input(self):
|
||||||
|
null_config = NullConfigStorage()
|
||||||
|
assert null_config.get('whatever') is None
|
Loading…
Reference in New Issue
Block a user