'Test setting and getting attrs'

@ddt.data(True, False)
def test_attrs(self, deprecated):

    self.set_up_assets(deprecated)
    for filename in self.course1_files:
        asset_key = self.course1_key.make_asset_key('asset', filename)
        prelocked = self.contentstore.get_attr(asset_key, 'locked', False)
        self.contentstore.set_attr(asset_key, 'locked', (not prelocked))
        self.assertEqual(self.contentstore.get_attr(asset_key, 'locked', False), (not prelocked))
