Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Moved the tests outside of the actual module

  • Loading branch information...
commit ab613fb429ce8343035e0105d0e5e61e14ebd329 1 parent f07c5b6
Nick Pegg authored June 22, 2011
4  ciscolib/device.py
@@ -161,9 +161,9 @@ def get_neighbors(self):
161 161
     def get_model(self):
162 162
         """ Gets the model number of the switch using the `get version` command """
163 163
         
164  
-        re_text = '(?:cisco (.+?) \(.+\) processor)|(?:Model number\s*:\s+(.+))'
  164
+        get_model.re_text = '(?:cisco (.+?) \(.+\) processor)|(?:Model number\s*:\s+(.+))'
165 165
         
166  
-        match = re.search(re_text, self.cmd('show version'))
  166
+        match = re.search(get_model.re_text, self.cmd('show version'))
167 167
         
168 168
         if match is not None:
169 169
             version = match.group(1)
0  ciscolib/tests.py → tests/tests.py
File renamed without changes

0 notes on commit ab613fb

Please sign in to comment.
Something went wrong with that request. Please try again.