def test_update_detail(self):
        if self.is_abstract_class:
            return
        mozlogger.info('test_update_detail')

        # create fixture
        fixture1 = self.factory
        # change modified on to 2 hours earlier than utcnow
        fixture1.modified_on = datetime(2011, 12, 13, 20, 39)
        meta_before = self.backend_meta_data(fixture1)
        obj_id = str(fixture1.id)
        fields = self.new_object_data

        # make read-only fields unchanging
        fields = self.manipulate_edit_data(fixture1, fields)

        # do put
        res = self.put(
            self.get_detail_url(self.resource_name, obj_id),
            params=self.credentials,
            data=fields,
            )

        # make sure object has been updated in the database
        fixture1 = self.refresh(fixture1)
        backend_data = self.clean_backend_data(fixture1)

        self.maxDiff = None
        self.assertEqual(fields, backend_data)

        # make sure 'modified' meta data has been updated
        meta_after = self.backend_meta_data(fixture1)
        self.assertEqual(meta_after["modified_by"], self.user.username)
        self.assertEqual(meta_after["modified_on"], self.utcnow)
        self.assertNotEqual(
            meta_before['modified_on'], meta_after['modified_on'])
Filters Element items in a list with matching name, regardless of URI.
dataset/ETHPy150Open mozilla/moztrap/tests/case/api/crud.py/ApiCrudCases.test_update_detail--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/generateElementsNamed