def test_fire(self):
     self.browser.visit(self.path)
     self.browser.css('button')[0].click()
     assert urlparse(self.browser.location).netloc == 'www.google.com'
 def test_location_set(self):
     self.browser.location = self.path
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.visit(self.path).location), p) == \
             getattr(urlparse(self.path), p)
 def test_press_button(self):
     self.browser.visit(self.path)
     self.browser.pressButton('Search')
     assert urlparse(self.browser.location).netloc == 'www.google.com'
Exemple #4
0
 def test_press_button(self):
     self.browser.visit(self.path)
     self.browser.pressButton('Search')
     assert urlparse(self.browser.location).path.endswith('/submit.html')
Exemple #5
0
 def test_fire(self):
     self.browser.visit(self.path)
     self.browser.css('button')[0].click()
     assert urlparse(self.browser.location).path.endswith('/submit.html')
Exemple #6
0
 def test_location_set(self):
     self.browser.location = self.path
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.visit(self.path).location), p) == \
             getattr(urlparse(self.path), p)
Exemple #7
0
 def test_location_set(self):
     url = self.base_url + 'location2'
     self.browser.location = url
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.visit(url).location), p) == \
             getattr(urlparse(url), p)
Exemple #8
0
 def test_location_get(self):
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.location), p) == \
             getattr(urlparse(self.base_url), p)
 def test_location_set(self):
     self.browser.location = 'http://zombie.labnotes.org/'
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.location), p) == \
             getattr(urlparse(self.path), p)
Exemple #10
0
 def test_location_get(self):
     for p in ('scheme', 'path'):
         getattr(urlparse(self.browser.location), p) == \
             getattr(urlparse(self.path), p)