Alex Willmer
81a77a453a
Use specific TestCase assertions throughout tests
...
e.g. assert x == y -> self.assertEqual(x, y);
self.assertTrue(isinstance(x, y)) -> self.assertIsInstance(x, y)
These specific methods give more useful errors in the case of a test
failure.
2017-11-11 23:08:08 +00:00
Alex Willmer
9351a44784
Use unittest2 in all tests
...
This allows using features such as TestCase,assertIsInstance on Python
2.6 and earlier.
2017-11-11 22:59:38 +00:00
Alex Willmer
fe2bf7111a
ssh_test: Correct hostname in SShTest.test_stream_name()
...
I presume that `u1704` is a relic of a bygone container/host.
2017-10-15 20:33:59 +01:00
David Wilson
f57a12b3f9
Fix context naming for sudo and via=.
2017-09-29 16:04:09 +05:30
David Wilson
d9bf091e6f
Simple working fakessh_test.
2017-09-17 21:19:06 +05:30
David Wilson
bd2c613b9c
Fix up a few more ssh_tests, stop sending 400 modules over network.
...
Defining functions in the current module was causing the entirety of
py.test and all dependencies to be sucked in.
2017-09-17 21:09:03 +05:30
David Wilson
cf506dfdf2
First handful of functional tests for SSH against Docker.
2017-09-17 18:11:48 +05:30
David Wilson
10c0dca24c
Apply package rename to tests
2017-09-16 12:45:25 +05:30
David Wilson
3535e45245
Broken SSH unit test.
2016-08-26 19:35:09 +01:00