/neatx/test/python/neatx.app.nxserver_login_test.py
http://neatx.googlecode.com/ · Python · 42 lines · 11 code · 11 blank · 20 comment · 1 complexity · 3d0fc7df32874dcec56e4536b6832ffb MD5 · raw file
- #!/usr/bin/python
- #
- # Copyright (C) 2009 Google Inc.
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- # 02110-1301, USA.
- """Script for unittesting the nxserver_login module"""
- import unittest
- from neatx import constants
- from neatx import errors
- from neatx import protocol
- from neatx.app import nxserver_login
- class TestConstants(unittest.TestCase):
- """Tests for constants"""
- def test(self):
- dummy_password = nxserver_login.NX_DUMMY_PASSWORD
- self.failIf(dummy_password.startswith(protocol.NX_PROMPT))
- if __name__ == '__main__':
- unittest.main()