add simple tests and timing code

The tests here may not be much use to you, but typing them out was useful to me in examining the library's workings. There are two files, meant for use with `pytest`:

 * `test_docs_content.py` reproduces most of the tests in the docstrings.
 * `test_large_lists.py` creates some large lists and tests `inverse` and `get_item` on their instantiations as `bidict`s.

The little timing program shows me how much slower `bidict` is than just creating a reversed dictionary. Of course, creation happens only once, and after that there are considerable savings in space and functionality. I am not suggesting any changes to `bidict` on account of this — I just wanted to see the difference in timing.

```python
>>> import time_manual_reverse_dict as M
>>> M.main(200)
Example with int: str.
In 200 trials, average time for a list of cardinality 100000:
    bidict:        1.8498 sec.
    reversed dict: 0.0349 sec.

Example with str: int.
In 200 trials, average time for a list of cardinality 100000:
    bidict:        1.8675 sec.
    reversed dict: 0.0378 sec.
>>>
```
Yes; I meant test, variety unhashable, subvariety list. - dpb

Software Developer and Lexicographer of Chinese
brannerchinese.com

On Sat, Sep 27, 2014 at 9:56 AM, jab <notifications@github.com> wrote:

> In test/test_docs_content.py:
>
> > +    assert element_by_symbol == B.bidict({})
> > +
> > +def test_pop_03():
> > +    element_by_symbol = B.bidict(Hg='mercury')
> > +    assert (~element_by_symbol).pop('mercury') == 'Hg'
> > +
> > +def test_update():
> > +    element_by_symbol = B.bidict()
> > +    element_by_symbol.update(Hg='mercury')
> > +    assert element_by_symbol == B.bidict({'Hg': 'mercury'})
> > +
> > +def test_unary_inverse():
> > +    element_by_symbol = B.bidict(Hg='mercury')
> > +    assert ~element_by_symbol == B.bidict({'mercury': 'Hg'})
> > +
> > +def test_unhashable_list():
>
> Lists are unhashable by definition. Maybe test_unhashable_value?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jab/bidict/pull/1/files#r18123739>.
>