<commit_before>from selenium import webdriver

browser = webdriver.Firefox()
browser.get('http://localhost:8000')

assert 'Django' in browser.title<commit_msg>Added a functional test<commit_after>from selenium import webdriver
import unittest

class NewVisitorTest(unittest.TestCase):
    
    def setUp(self):
        self.browser = webdriver.Firefox()
        self.browser.implicitly_wait(3)

    def tearDown(self):
        self.browser.quit()
    
    def test_can_open_site_and_create_event(self):
        # Open the homepage
        self.browser.get('http://localhost:8000')

        # Page header for TTM
        self.assertIn('Tango Time Machine', self.browser.title)
        self.fail('Finish the test!')

        # Should be able to input a Tango Event into the TTM. Input an example:
        # * "<NAME>"

        # Update page to list the single Tango Event
        # Now the page should read "<NAME>"

        # Should still be able to to add an extra item
        # * "<NAME>"

        # Update page to list both Events

        # Refreshing the page should show that the list of events is still there
    
if __name__ == '__main__':
    unittest.main()


    
{'fraction_non_alphanumeric': 0.09028960817717206, 'fraction_numerical': 0.007666098807495741, 'mean_word_length': 2.6490683229813663, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6112199', 'n_tokens_mistral': 350, 'n_tokens_neox': 327, 'n_words': 109}