def test_delattr(self): n = tools.Null() self.assertEqual(n, n.__delattr__('key'))
def test_setattr(self): n = tools.Null() self.assertEqual(n, n.__setattr__('key', 'value'))
def test_call(self): n = tools.Null() self.assertEqual(n, n()) self.assertEqual(n, n(1))
def test_nonzero(self): self.assertFalse(bool(tools.Null()))
def test_init(self): self.assertDictEqual(tools.Null().__dict__, {}) self.assertDictEqual(tools.Null('args').__dict__, {})