1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 28 15:07:16 2020
@author: Suhas Somnath
"""
from __future__ import division, print_function, unicode_literals, \
absolute_import
import unittest
import sys
sys.path.append("../../sidpy/")
from sidpy.base.dict_utils import *
if sys.version_info.major == 3:
unicode = str
class TestFlattenDict(unittest.TestCase):
def test_already_flat(self):
pass
def test_two_level(self):
pass
def test_five_level(self):
pass
def test_non_str_keys(self):
pass
def test_invalid_separator(self):
pass
def test_not_dict_at_all(self):
pass
def test_value_is_list(self):
# Going by what @gduscher added
pass
class TestMergeDicts(unittest.TestCase):
def test_blah(self):
pass
class TestNestDict(unittest.TestCase):
def test_not_dict(self):
pass
def test_invalid_separator(self):
pass
def test_empty_separator(self):
pass
def test_incorrect_separator(self):
pass
def test_already_nested_dict(self):
pass
def test_partially_nested_dict(self):
pass
def test_typical_flat_dict(self):
pass
def test_keys_are_not_str(self):
pass
class TestNestedDictFromFlattenedKey(unittest.TestCase):
def test_nothing_to_flatten(self):
pass
def test_multiple_key_val(self):
pass
def test_five_level_key(self):
pass
def test_not_a_dict_at_all(self):
pass
def test_invalid_sep(self):
pass
def test_wrong_separator(self):
pass
def test_key_is_not_str(self):
pass
class TestPrintNestedDict(unittest.TestCase):
def test_not_dict(self):
pass
def test_invalid_level_type(self):
pass
def test_flat_dict(self):
pass
def test_typical_nested_dict(self):
pass
if __name__ == '__main__':
unittest.main()
|