Пример #1
0
class TestFileStorageInterface(TestCase):
    def setUp(self):
        self.interface = FileStorageInterface()

    def test_can_write(self):
        self.assertTrue(self.interface.can('write'))

    def test_can_read(self):
        self.assertTrue(self.interface.can('read'))
Пример #2
0
class TestFileStorageInterface(TestCase):

    def setUp(self):
        self.interface = FileStorageInterface()

    def test_can_write(self):
        self.assertTrue(self.interface.can('write'))

    def test_can_read(self):
        self.assertTrue(self.interface.can('read'))
Пример #3
0
def make_database():
    from iot_analytics.interfaces import FileStorageInterface
    return FileStorageInterface()
Пример #4
0
 def setUp(self):
     self.interface = FileStorageInterface()
Пример #5
0
 def setUp(self):
     self.interface = FileStorageInterface()