general comment: Don't use naked assertion statements in unittests please.  They can be optimized away and the self.assert* methods will also sometimes add additional checks that make debugging results easier:

```python
from unittest import TestCase, main

class TestFoo(TestCase):
    def test_foo(self):
        self.assertEqual(
            {"foo": True, "bar": False, "foobar": "bat"},
            {"foo": True, "bar": None})

main()
```

Results:
```
F
======================================================================
FAIL: test_foo (__main__.TestFoo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/opalmer/repos/pyfarm-agent/scratch.py", line 9, in test_foo
    {"foo": True, "bar": None})
AssertionError: {'foobar': 'bat', 'foo': True, 'bar': False} != {'foo': True, 'bar': None}
- {'bar': False, 'foo': True, 'foobar': 'bat'}
+ {'bar': None, 'foo': True}

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (failures=1)
```