@@ -79,22 +79,22 @@ def main():
79
79
data .append ("class MyTestClass(BaseCase):" )
80
80
data .append ("" )
81
81
data .append (" def test_basic(self):" )
82
- data .append (" self.open(' https://xkcd.com/353/')" )
82
+ data .append (' self.open(" https://xkcd.com/353/")' )
83
83
data .append (" self.assert_element('img[alt=\" Python\" ]')" )
84
84
data .append (" self.click('a[rel=\" license\" ]')" )
85
- data .append (" self.assert_text(' free to copy', ' div center')" )
86
- data .append (" self.open(\ " https://xkcd.com/1481/\" )" )
85
+ data .append (' self.assert_text(" free to copy", " div center")' )
86
+ data .append (' self.open("https://xkcd.com/1481/")' )
87
87
data .append (
88
88
" title = self.get_attribute(\" #comic img\" , \" title\" )" )
89
89
data .append (
90
90
" self.assert_true(\" 86,400 seconds per day\" in title)" )
91
- data .append (" self.click(' link=Blag')" )
91
+ data .append (' self.click(" link=Blag")' )
92
92
data .append (
93
- " self.assert_text(' The blag of the webcomic', 'h2')" )
94
- data .append (" self.update_text(' input#s', ' Robots!\\ n')" )
95
- data .append (" self.assert_text(' Hooray robots!', ' #content')" )
96
- data .append (" self.open(' https://xkcd.com/1319/')" )
97
- data .append (" self.assert_exact_text(' Automation', ' #ctitle')" )
93
+ ' self.assert_text(" The blag of the webcomic", "h2")' )
94
+ data .append (' self.update_text(" input#s", " Robots!\\ n")' )
95
+ data .append (' self.assert_text(" Hooray robots!", " #content")' )
96
+ data .append (' self.open(" https://xkcd.com/1319/")' )
97
+ data .append (' self.assert_exact_text(" Automation", " #ctitle")' )
98
98
data .append ("" )
99
99
file_path = "%s/%s" % (dir_name , "my_first_test.py" )
100
100
file = codecs .open (file_path , "w+" , "utf-8" )
0 commit comments