def METHOD_NAME(self):
    user = self.create_user('test@akvo.org', 'password')
    org = self.create_organisation('Acme Org')
    self.make_employment(user, org, 'M&E Managers')
    project = ProjectFixtureBuilder()\
        .with_partner(org, Partnership.IATI_REPORTING_ORGANISATION)\
        .with_results([{
            'title': 'Result #1',
            'indicators': [{
                'title': 'Indicator #1',
                'periods': [{
                    'period_start': date(2010, 1, 1),
                    'period_end': date(2010, 12, 31),
                    'locked': False,
                }]
            }]
        }])\
        .build()
    period = project.periods.first()
    response = self.post_request(
        project.object, data={'periods': [period.id], 'locked': True}, username='test@akvo.org', password='password')
    period = project.periods.first()
    self.assertTrue(period.locked)
    self.assertEqual(200, response.status_code)