示例#1
0
    def test_get_and_clean_student_list(self):
        """
        Clean user input test
        """

        string = "[email protected], [email protected] [email protected] \n \n [email protected]   \n [email protected]   "
        cleaned_string, cleaned_string_lc = get_and_clean_student_list(string)
        self.assertEqual(cleaned_string, ['*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**'])
    def test_get_and_clean_student_list(self):
        """
        Clean user input test
        """

        string = "[email protected], [email protected] [email protected] \n \n [email protected]   \n [email protected]   "
        cleaned_string, cleaned_string_lc = get_and_clean_student_list(string)
        self.assertEqual(cleaned_string, ['*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**'])
    def test_get_and_clean_student_list(self):
        """
        Clean user input test
        """

        string = "[email protected], [email protected] [email protected] \n \n [email protected]   \n [email protected]   "
        cleaned_string, _cleaned_string_lc = get_and_clean_student_list(string)
        self.assertEqual(
            cleaned_string, ["*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**", "*****@*****.**"]
        )