def METHOD_NAME(self):
    ts = datetime.datetime.now()
    write_stats("key2", 60)
    # Now we delete some keys (the three old ones)
    with self.app.test_request_context('/monitoring/key2',
                                       method='DELETE',
                                       data={"start": "2010-01-01",
                                             "end": ts.strftime(AUTH_DATE_FORMAT)},
                                       headers={'Authorization': self.at}):
        res = self.app.full_dispatch_request()
        self.assertTrue(res.status_code == 200, res)
        result = res.json.get("result")
        # Number of deleted values
        self.assertEqual(result.get("value"), 3)
    # ..and check if there is only one key left!
    with self.app.test_request_context('/monitoring/key2',
                                       method='GET',
                                       headers={'Authorization': self.at}):
        res = self.app.full_dispatch_request()
        self.assertTrue(res.status_code == 200, res)
        result = res.json.get("result")
        # Number of remaining values
        self.assertEqual(1, len(result.get("value")), result)