def test_update_storage_language(self):
        self.create_storage()
        data = '{"language": "%s"}' % self.language.code
        resp = self.client['registered'].post(reverse('api.storage.file',
            args=[self.uuid]), data=data, content_type="application/json")
        print resp.content
        self.assertEqual(resp.status_code, 200)
        self.assertTrue('OK' in resp.content)
Test update of language for StorageFile.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/storage/tests/api.py/StorageTests.test_update_storage_language