def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None
 def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None