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