def test_cannot_set_attributes(self): config = Configuration({}) expected_exception = ExpectedException( AttributeError, "^'Configuration' object has no attribute 'foo'$" ) with expected_exception: config.foo = "bar"
def test_create(self): config = Configuration({}) self.assertEqual({}, config.store)