def test_install_with_package_arg(self): with patch('glue._deps.check_call') as check_call: d = Dependency('asdfasdf', 'never exists', package='bcd') d.install() check_call.assert_called_once_with(['pip', 'install', 'bcd'])