Might be clearer to say
```python
discussion = tabs.CourseTabList.get_discussion(course)
if discussion is not None:
    self.assertIsNone(discussion.link_func(course))
```