add tests to check the basic behaviour of the default method and a fix
for issue #70
remove unecessary code
minor cleanup
docstring cleanup
rework test to support python 2.6
rename the test module
Merge branch 'master' into fix-issue-70

# By Pietro Berkes
# Via Pietro Berkes
* master: (27 commits)
  Update changelog.
  Improve documentation of 'ui' dispatch method.
  Update Travis CI files so we can test trait notification on UI thread.
  Pre- and post- change event notification hooks.
  Remove unnecessary assignment.
  Add a global trait change event tracer.
  Clean up imports.
  Improve docstrings.
  Refactor TraitChangeNotifyWrapper and ExtendedTraitChangeNotifyWrapper.
  Rename 'n' to 'arg_count'.
  Add missing call to `gc.collect()` to test.
  Cover `FastUITraitChangeNotifyWrapper` with tests.
  Cover `NewTraitChangeNotifyWrapper` for tests.
  The `dispatch='ui'` option has been broken since 2007, remove it.
  Test that objects with listeners can still be garbage collected.
  Cover `ExtendedTraitChangeNotifyWrapper`.
  Import unittest from traits.testing, remove unnecessary complications.
  Improve header.
  Cover the methods in TraitChangeNotifyWrapper with tests.
  Refactor: extract super class for static change notifier wrappers.
  ...
revert removal of check for KeyError
remove KeyError checks after PyDict_SetItem
use if...else if...else block
correct if block logic
add missing `;`
remove unecessary check
Merge branch 'master' into fix-issue-70

# By Ioannis Tziakos (8) and others
# Via Pietro Berkes (2) and others
* master:
  Improved PEP8 compliancy of Line2D example in user manual.
  Fixed PEP8 compliancy
  Added 'self' to member functions
  minor grammar correction
  comment cleanup
  Close docstring in sample code to fix Pygmentation error
  updating changelog
  minor correction
  added note about the `object is None` case
  use unittest2 assert methods
  rename dict_test_case -> test_dict
  fix issue #71
  update imports to not use the `api` module
  fix minor pep8 issues
  add a test for the validate method
update change log
Merge pull request #81 from enthought/fix-issue-70

Remove unecessary check for KeyError in ctraits.c