'Internal helper to perform the actual assertion'

def _verify_get_own_username(self, queries, expected_status=200):

    with self.assertNumQueries(queries):
        response = self.send_get(self.client, expected_status=expected_status)
    if (expected_status == 200):
        data = response.data
        self.assertEqual(1, len(data))
        self.assertEqual(self.user.username, data['username'])
