You might consider DRYing this up further by passing the mock package name in. i.e. `nodependencies` instead of `mock_packages[['nodependencies']]`.