```python
response = self.view_class.as_view()(request)
self.assertNotEqual(response.status_code, status.HTTP_429_TOO_MANY_REQUESTS)
response = self.view_class.as_view()(request)
self.assertEqual(response.status_code, status.HTTP_429_TOO_MANY_REQUESTS)
```