'Assert that the course assets identified by ``expected_course_key`` in ``expected_store`` and
``actual_course_key`` in ``actual_store`` are identical, allowing for differences related
to their being from different course keys.'

def assertAssetsEqual(self, expected_store, expected_course_key, actual_store, actual_course_key):

    (expected_content, expected_count) = expected_store.get_all_content_for_course(expected_course_key)
    (actual_content, actual_count) = actual_store.get_all_content_for_course(actual_course_key)
    with self.bulk_assertions():
        self.assertEqual(expected_count, actual_count)
        self._assertAssetsEqual(expected_course_key, expected_content, actual_course_key, actual_content)
        expected_thumbs = expected_store.get_all_content_thumbnails_for_course(expected_course_key)
        actual_thumbs = actual_store.get_all_content_thumbnails_for_course(actual_course_key)
        self._assertAssetsEqual(expected_course_key, expected_thumbs, actual_course_key, actual_thumbs)
