saltstack/salt — pull request #2829 by s0undt3ch (2012-12-07 13:02:29+00:00)
Title: Adapted `tests.integration.states.ssh` to use `SaltReturnAssertsMixIn`.

Two new methods were added to [`SaltReturnAssertsMixIn`](https://github.com/s0undt3ch/salt/blob/develop/tests/integration/__init__.py#L858), [`SaltReturnAssertsMixIn.assertSaltStateChangesEqual()`](https://github.com/s0undt3ch/salt/blob/develop/tests/integration/__init__.py#L966) and [`SaltReturnAssertsMixIn.assertSaltStateChangesNotEqual()`](https://github.com/s0undt3ch/salt/blob/develop/tests/integration/__init__.py#L966), in order to be able to test salt state returns. These methods, besides asserting that the state was correctly applied using [`SaltReturnAssertsMixIn.assertSaltTrueReturn()`](https://github.com/s0undt3ch/salt/blob/develop/tests/integration/__init__.py#L906), are also able to test for what's in the `changes` key of salt's return, it can even "go inside" the `changes` dictionary, just have a look at what was done in [`tests.integration.states.ssh`](https://github.com/s0undt3ch/salt/blob/develop/tests/integration/states/ssh.py).