def test_policy_error(self):
        router = Router(object())
        try:
            router.policy = 'foo 123'
            self.fail()
        except Exception, e:
            self.assertTrue("Don't understand" in str(e))
dataset/ETHPy150Open meejah/txtorcon/test/test_router.py/RouterTests.test_policy_error/original