diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2013-11-19 17:06:33 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2013-11-19 17:06:33 +0000 |
commit | 54116d3c486ed7aa49f284e4cad9e6e7c293bea6 (patch) | |
tree | fa32a75ebba262def85af97cc34a7db69bc69034 /cxmanage_test/tftp_test.py | |
parent | 7087e92d40310d9bb6c8b4a6bb1baf7c3b73bee7 (diff) | |
parent | 4da2f9c7eaa95ebf357eeca3a497b6a206675ef8 (diff) | |
download | cxmanage-54116d3c486ed7aa49f284e4cad9e6e7c293bea6.tar.gz |
Merge tag 'v0.10.2' into baserock/morphbaserock/morph
v0.10 post-release tag for pyinstaller support
Diffstat (limited to 'cxmanage_test/tftp_test.py')
-rw-r--r-- | cxmanage_test/tftp_test.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cxmanage_test/tftp_test.py b/cxmanage_test/tftp_test.py index 784211a..afd258f 100644 --- a/cxmanage_test/tftp_test.py +++ b/cxmanage_test/tftp_test.py @@ -1,4 +1,7 @@ -# Copyright (c) 2012, Calxeda Inc. +"""Calxeda: tftp_test.py""" + + +# Copyright (c) 2012-2013, Calxeda Inc. # # All rights reserved. # @@ -27,7 +30,11 @@ # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH # DAMAGE. -"""Unit tests for the Internal and External Tftp classes.""" + + +# +# Unit tests for the Internal and External Tftp classes. +# import os @@ -51,6 +58,7 @@ def _get_relative_host(): except socket.error: raise +# pylint: disable=R0904 class InternalTftpTest(unittest.TestCase): """ Tests the functions of the InternalTftp class.""" @@ -79,7 +87,7 @@ class InternalTftpTest(unittest.TestCase): self.assertEqual(open(filename).read(), contents) os.remove(filename) - def test_get_address_with_relative_host(self): + def test_get_address_with_relhost(self): """Tests the get_address(relative_host) function with a relative_host specified. """ @@ -97,6 +105,7 @@ class InternalTftpTest(unittest.TestCase): sock.close() +# pylint: disable=R0904 class ExternalTftpTest(unittest.TestCase): """Tests the ExternalTftp class. ..note: |