'Verifies is_bookmarked returns Bool as expected.'

def test_is_bookmarked(self):

    with self.assertNumQueries(1):
        self.assertTrue(self.bookmark_service.is_bookmarked(usage_key=self.sequential_1.location))
        self.assertFalse(self.bookmark_service.is_bookmarked(usage_key=self.vertical_2.location))
        self.assertTrue(self.bookmark_service.is_bookmarked(usage_key=self.sequential_2.location))
    self.bookmark_service.set_bookmarked(usage_key=self.chapter_1.location)
    with self.assertNumQueries(0):
        self.assertTrue(self.bookmark_service.is_bookmarked(usage_key=self.chapter_1.location))
        self.assertFalse(self.bookmark_service.is_bookmarked(usage_key=self.vertical_2.location))
    self.bookmark_service.unset_bookmarked(usage_key=self.chapter_1.location)
    with self.assertNumQueries(0):
        self.assertFalse(self.bookmark_service.is_bookmarked(usage_key=self.chapter_1.location))
        self.assertFalse(self.bookmark_service.is_bookmarked(usage_key=self.vertical_2.location))
    bookmark_service = BookmarksService(self.other_user)
    with self.assertNumQueries(1):
        self.assertFalse(bookmark_service.is_bookmarked(usage_key=self.sequential_1.location))
