def test_lists(self):
    obj1 = type('lamdbaobject', (object,), {})()
    obj1.name = 'john'
    obj1.email = 'foo'
    c = Collection([obj1, {'name': 'jane', 'email': 'bar'}])
    self.assertEqual({'john': 'foo', 'jane': 'bar'}, c.lists('email', 'name'))
    self.assertEqual(['foo', 'bar'], c.pluck('email').all())
def test_lists(self):
    obj1 = type('lamdbaobject', (object,), {})()
    obj1.name = 'john'
    obj1.email = 'foo'
    c = Collection([obj1, {'name': 'jane', 'email': 'bar'}])
    self.assertEqual({'john': 'foo', 'jane': 'bar'}, c.lists('email', 'name'))
    self.assertEqual(['foo', 'bar'], c.pluck('email').all())