Example #1
0
 def test_none(self):
     eq_(pull_data_dict([]), None)
     eq_(pull_data_dict([1, 3]), None)
Example #2
0
 def test_normal(self):
     d = {'data': 1}
     eq_(pull_data_dict([d]), d)
     eq_(pull_data_dict([3, d]), d)
     eq_(pull_data_dict(['as', [2, d]]), d)
     eq_(pull_data_dict([1, ['f', 3], d, '4']), d)
Example #3
0
 def test_error(self):
     pull_data_dict('asdf')