diff --git a/importer/tests/test_import.py b/importer/tests/test_import.py index 9cceb379..defa836f 100644 --- a/importer/tests/test_import.py +++ b/importer/tests/test_import.py @@ -286,9 +286,10 @@ def get_counts(): ).distinct() self.assertEqual(htmls.count(), 1) self.assertEqual( - [asset.asset for asset in htmls[0].static_assets.all()], - [ + sorted([ + asset.asset.name for asset in htmls[0].static_assets.all()]), + sorted([ "assets/edX/toy/TT_2012_Fall/essays_x250.png", "assets/edX/toy/TT_2012_Fall/webGLDemo.css", - ] + ]) )