def test_resource_edit(self, file_handler=None, bad=False):
        """Test editing a resource"""
        if file_handler:
            fh = file_handler
        else:
            fh = open(os.path.split(__file__)[0]% '%s/../lib/pofile/tests.pot',)
        url = reverse('resource_edit', args=[self.project.slug, self.resource.slug])
        DATA = {'slug':'resource1', 'name':'Resource1', 'accept_translations':'on', 'sourcefile':fh, 'source_file_url':'',}
        resp = self.client['maintainer'].post(url, DATA, follow=True)
        if file_handler:
            return resp
        else:
            self.assertEqual(resp.status_code, 200)
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/tests/views/views.py/CoreViewsTest.test_resource_edit/swapped operands of `%`