'Base implementation that returns URL for endpoint that\'s being tested.'

def reverse_url(self, reverse_args=None, **kwargs):

    reverse_args = (reverse_args or {})
    if ('course_id' in self.REVERSE_INFO['params']):
        reverse_args.update({'course_id': unicode(kwargs.get('course_id', self.course.id))})
    if ('username' in self.REVERSE_INFO['params']):
        reverse_args.update({'username': kwargs.get('username', self.user.username)})
    return reverse(self.REVERSE_INFO['name'], kwargs=reverse_args)
