示例#1
0
 def test_str2dict_separator(self):
     assert utils.str2dict('foo:bar', value=2, separator=':') == {
         'foo': {
             'bar': 2
         }
     }
示例#2
0
 def test_str2dict_value(self):
     assert utils.str2dict('foo.bar', value=2) == {'foo': {'bar': 2}}
示例#3
0
 def test_str2dict(self):
     assert utils.str2dict('foo.bar') == {'foo': {'bar': {}}}
示例#4
0
 def test_str2dict_separator(self):
     assert utils.str2dict('foo:bar', value=2, separator=':') == {
         'foo': {'bar': 2}}
示例#5
0
 def test_str2dict_value(self):
     assert utils.str2dict('foo.bar', value=2) == {'foo': {'bar': 2}}
示例#6
0
 def test_str2dict(self):
     assert utils.str2dict('foo.bar') == {'foo': {'bar': {}}}