def test_write_error(self):
        features = FeatureBlob(MockBlob('{"a": 13}'))

        def set_bad_key():
            features[13] = 'asdf'
        self.assertRaises(AssertionError, set_bad_key)

        def set_bad_value():
            features['b'] = ['asdf']
        self.assertRaises(AssertionError, set_bad_value)

        try:
            features['b'] = 'asdf'
            features['c'] = 15
        except __HOLE__:
            self.fail('Strings and numbers should be allowed')
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/tests/test_storage.py/FeaturesTestCase.test_write_error