Created
August 8, 2020 23:28
-
-
Save JoaquinAcuna97/1178fce1f8d8a12be1217218e4606f24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
import unittest | |
class HomePageTest(unittest.TestCase): | |
def setUp(self): | |
self.driver = webdriver.Firefox( | |
) | |
def test_home_page(self): | |
self.driver.get("http://127.0.0.1:8000/") | |
assert "Django" in self.driver.title | |
def tearDown(self): | |
self.driver.quit() | |
if __name__ == "__main__": | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment