File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
3
import os
4
- import sys
5
4
6
5
7
6
class ExampleRemoteLibrary :
@@ -10,19 +9,20 @@ class ExampleRemoteLibrary:
10
9
This documentation is visible in docs generated by `Libdoc`.
11
10
"""
12
11
13
- def __init__ (self ):
14
- """Also this doc should be in shown in library doc."""
15
-
16
12
def count_items_in_directory (self , path ):
17
13
"""Returns the number of items in the directory specified by `path`."""
18
14
return len ([i for i in os .listdir (path ) if not i .startswith ('.' )])
19
15
20
16
def strings_should_be_equal (self , str1 , str2 ):
21
17
print "Comparing '%s' to '%s'." % (str1 , str2 )
18
+ if not (isinstance (str1 , basestring ) and isinstance (str2 , basestring )):
19
+ raise AssertionError ("Given strings are not strings." )
22
20
if str1 != str2 :
23
21
raise AssertionError ("Given strings are not equal." )
24
22
25
23
26
24
if __name__ == '__main__' :
25
+ import sys
27
26
from robotremoteserver import RobotRemoteServer
27
+
28
28
RobotRemoteServer (ExampleRemoteLibrary (), * sys .argv [1 :])
You can’t perform that action at this time.
0 commit comments