Merge f31c550bb49370a517d3344e03b8c64406590ad6 into 67598872ef07b8d580d6938e6d4002f2c1bd4b5d

This commit is contained in:
Lorenzo 2016-02-09 21:19:16 +00:00
commit c95794b6be
2 changed files with 39 additions and 0 deletions

2
test/__init__.py Normal file
View File

@ -0,0 +1,2 @@
# coding=utf-8

37
test/test_basic.py Normal file
View File

@ -0,0 +1,37 @@
"""
A Basic Test Module
"""
import unittest
class TestBase(unittest.TestCase):
"""
Test basic functionality
"""
DEBUG = True # set this flag to skip tests while debugging the unit
@classmethod
def setUpClass(cls):
"""
Set up variables at TestCase-level
"""
cls.KEY1 = 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
cls.KEY2 = 'QmR9MzChjp1MdFWik7NjEjqKQMzVmBkdK3dz14A6B5Cupm'
cls.NODE = {'Data': b'Hello World'}
def setUp(self):
"""
Set up variables at test-level
"""
pass
@unittest.skipIf(DEBUG, "debug")
def test_one(self):
"""
Minimal functional test
"""
pass
if __name__ == '__main__':
unittest.main()