def test_multiple_users_can_start_lists_at_different_urls(self):
    self.browser.get(self.live_server_url)
    input_box = self.browser.find_element_by_id('id_new_item')
    input_box.send_keys('Buy peacock feathers')
    input_box.send_keys(Keys.ENTER)
    self.wait_for_row_in_list_table('1: Buy peacock feathers')
    edith_list_url = self.browser.current_url
    self.assertRegex(edith_list_url, '/lists/.+')
    self.browser.quit()
    self.browser = webdriver.Firefox()
    self.browser.get(self.live_server_url)
    page_text = self.browser.find_element_by_tag_name('body').text
    self.assertNotIn('Buy peacock feathers', page_text)
    self.assertNotIn('make a fly', page_text)
    input_box = self.browser.find_element_by_id('id_new_item')
    input_box.send_keys('Buy milk')
    input_box.send_keys(Keys.ENTER)
    self.wait_for_row_in_list_table('1: Buy milk')
    francis_list_url = self.browser.current_url
    self.assertRegex(francis_list_url, '/lists/.+')
    self.assertNotEqual(francis_list_url, edith_list_url)
    page_text = self.browser.find_element_by_tag_name('body').text
    self.assertNotIn('Buy peacock feathers', page_text)
    self.assertIn('Buy milk', page_text)
    self.fail('Finish the test!')
def test_multiple_users_can_start_lists_at_different_urls(self):
    self.browser.get(self.live_server_url)
    input_box = self.browser.find_element_by_id('id_new_item')
    input_box.send_keys('Buy peacock feathers')
    input_box.send_keys(Keys.ENTER)
    self.wait_for_row_in_list_table('1: Buy peacock feathers')
    edith_list_url = self.browser.current_url
    self.assertRegex(edith_list_url, '/lists/.+')
    self.browser.quit()
    self.browser = webdriver.Firefox()
    self.browser.get(self.live_server_url)
    page_text = self.browser.find_element_by_tag_name('body').text
    self.assertNotIn('Buy peacock feathers', page_text)
    self.assertNotIn('make a fly', page_text)
    input_box = self.browser.find_element_by_id('id_new_item')
    input_box.send_keys('Buy milk')
    input_box.send_keys(Keys.ENTER)
    self.wait_for_row_in_list_table('1: Buy milk')
    francis_list_url = self.browser.current_url
    self.assertRegex(francis_list_url, '/lists/.+')
    self.assertNotEqual(francis_list_url, edith_list_url)
    page_text = self.browser.find_element_by_tag_name('body').text
    self.assertNotIn('Buy peacock feathers', page_text)
    self.assertIn('Buy milk', page_text)
    self.fail('Finish the test!')