def test_posix(self):
     self.mock_platform.return_value = 'linux'
     result = rerun_command()
     self.assertEqual(
         result['PACT_INTERACTION_RERUN_COMMAND'],
         "PACT_DESCRIPTION='<PACT_DESCRIPTION>'"
         " PACT_PROVIDER_STATE='<PACT_PROVIDER_STATE>'"
         " pact-verifier --pact-url=./consumer-provider.json")
 def test_windows(self):
     self.mock_platform.return_value = 'Windows'
     result = rerun_command()
     self.assertEqual(
         result['PACT_INTERACTION_RERUN_COMMAND'], "cmd.exe /v /c \""
         "set PACT_DESCRIPTION=<PACT_DESCRIPTION>"
         "& set PACT_PROVIDER_STATE=<PACT_PROVIDER_STATE>"
         "& pact-verifier.exe"
         " --pact-url=./consumer-provider.json"
         " & set PACT_DESCRIPTION="
         " & set PACT_PROVIDER_STATE=\"")
    def test_env_copied(self, mock_env):
        mock_env.copy.return_value = {'foo': 'bar'}
        self.mock_platform.return_value = 'linux'

        result = rerun_command()
        self.assertEqual(result['foo'], 'bar')