def METHOD_NAME(self):
    token_bucket = self.create_token_bucket()
    self.timestamp_sequences.append(1)
    token_bucket.max_rate = 0.5
    self.assertEqual(token_bucket.max_rate, 0.5)
    self.assertEqual(token_bucket.max_capacity, 1)