This isn't testing any of your code logic, is it? You want to test that the change you made on line 287 in assets.py works. To do that, you want to tell the test to mock the setting value of settings.LMS_BASE, then inspect the return value from the method.