'This test creates a course, makes a draft item, and deletes the course. This will also assert that the
draft content is also deleted'

def test_delete_course(self):

    asset_key = self.course.id.make_asset_key('asset', 'sample_static.html')
    content = StaticContent(asset_key, 'Fake    asset', 'application/text', 'test')
    contentstore().save(content)
    (assets, count) = contentstore().get_all_content_for_course(self.course.id)
    self.assertGreater(len(assets), 0)
    self.assertGreater(count, 0)
    self.store.convert_to_draft(self.vert_loc, self.user.id)
    self.store.delete_course(self.course.id, self.user.id)
    items = self.store.get_items(self.course.id)
    self.assertEqual(len(items), 0)
    (assets, count) = contentstore().get_all_content_for_course(self.course.id)
    self.assertEqual(len(assets), 0)
    self.assertEqual(count, 0)
