def test_save_wheels_calls_pip_wheel(self, check_call): save_wheels(sys.executable, '/destination/path', 'django', 'wagtail', '-rrequirements.txt') check_call.assert_called_once_with([ sys.executable, '-m', 'pip', 'wheel', '--wheel-dir=/destination/path', '--find-links=/destination/path', 'django', 'wagtail', '-rrequirements.txt', ])
def test_save_wheels_re_raises_pip_wheel_exception(self, check_call): with self.assertRaises(RuntimeError): save_wheels(sys.executable, '/destination/path')