edx/bok-choy — pull request #42 by muhammad-ammar (2014-07-03 09:27:47+00:00)
Title: Fix all function issue

Python [all](https://docs.python.org/2/library/functions.html#all) function returns True even if iterable is empty which in out case produce incorrect results.

Below is an example to explain the issue

```html

Visible

Batman

Superman

```

```python
self.q(css="div.sandman").visible
```
The above query will return ```True``` which is ```incorrect``` because there is no ```sandman``` class is present in above html.

This happens because bok-choy query ```visible``` property is defined like below
```python
all(self.map(lambda el: el.is_selected(), 'selected').results)
```

```self.map(lambda el: el.is_selected(), 'selected').results``` returns an empty list when there is an incorrect css selector but ```all([])``` will gives ```True```