def METHOD_NAME(self, resource_string):
    key_url = 'some_url.js'
    resource_string.side_effect = IOError()
    self.assertEqual(LoadStatic.get_url(key_url), urljoin(
        'localhost/', self.default_base_url, 'some_url.js'))