def setUp(self):
super(APITest, self).setUp()<EOL>self.create_user(username=TEST_USERNAME, email=TEST_EMAIL, password=TEST_PASSWORD)<EOL>self.client = APIClient()<EOL>self.client.login(username=TEST_USERNAME, password=TEST_PASSWORD)<EOL>
Perform operations common to all tests.