def METHOD_NAME(self):
    """set_last_thread changes category's last thread"""
    self.category.synchronize()
    new_thread = self.create_thread()
    self.category.set_last_thread(new_thread)
    self.assertEqual(self.category.last_post_on, new_thread.last_post_on)
    self.assertEqual(self.category.last_thread, new_thread)
    self.assertEqual(self.category.last_thread_title, new_thread.title)
    self.assertEqual(self.category.last_thread_slug, new_thread.slug)
    self.assertEqual(self.category.last_poster, new_thread.last_poster)
    self.assertEqual(self.category.last_poster_name, new_thread.last_poster_name)
    self.assertEqual(self.category.last_poster_slug, new_thread.last_poster_slug)