Permalink
Browse files

Moved the tests outside of the actual module

  • Loading branch information...
nickpegg committed Jun 22, 2011
1 parent f07c5b6 commit ab613fb429ce8343035e0105d0e5e61e14ebd329
Showing with 2 additions and 2 deletions.
  1. +2 −2 ciscolib/device.py
  2. 0 {ciscolib → tests}/tests.py
View
@@ -161,9 +161,9 @@ def get_neighbors(self):
def get_model(self):
""" Gets the model number of the switch using the `get version` command """
- re_text = '(?:cisco (.+?) \(.+\) processor)|(?:Model number\s*:\s+(.+))'
+ get_model.re_text = '(?:cisco (.+?) \(.+\) processor)|(?:Model number\s*:\s+(.+))'
- match = re.search(re_text, self.cmd('show version'))
+ match = re.search(get_model.re_text, self.cmd('show version'))
if match is not None:
version = match.group(1)
File renamed without changes.

0 comments on commit ab613fb

Please sign in to comment.