@mock.patch('systemjs.management.commands.systemjs_bundle.find_systemjs_location')
    def test_systemjs_inside_static_root(self, systemjs_mock, bundle_mock):
        bundle_mock.side_effect = _bundle
        self.write_systemjs()
        systemjs_mock.return_value = self.systemjs_location

        self.assertEqual(_num_files(settings.STATIC_ROOT), 1)
        call_command('systemjs_bundle', stdout=self.out, stderr=self.err)
        # system.js exists + created one file + did post processing for both
        self.assertEqual(_num_files(settings.STATIC_ROOT), 4)
        self.assertEqual(bundle_mock.call_count, 1)  # only one bundle call made
See issue #5: if jspm installs directly into settings.STATIC_ROOT,
dataset/ETHPy150Open sergei-maertens/django-systemjs/tests/tests/test_management.py/PostProcessSystemJSTests.test_systemjs_inside_static_root