Esempio n. 1
0
    def test_noExtension(self):
        """

        Test email address does not have extension

        """
        test_email_address = "johnsmith@gmail."
        self.assertFalse(fun(test_email_address))
Esempio n. 2
0
    def test_NoUsername(self):
        """

        Test email address does not have @

        """
        test_email_address = "@hgmail.com"
        self.assertFalse(fun(test_email_address))
Esempio n. 3
0
    def test_noWebsite(self):
        """

        Test email address does not have website part

        """
        test_email_address = "[email protected]"
        self.assertFalse(fun(test_email_address))
Esempio n. 4
0
    def test_NoAtNoDot(self):
        """

        Test email address does not have @

        """
        test_email_address = "johnsmithgmailcom"
        self.assertFalse(fun(test_email_address))
Esempio n. 5
0
    def test_MissingAt(self):
        """

        Test email address does not have @

        """
        test_email_address = "johnsmithgmail.com"
        self.assertFalse(fun(test_email_address))
Esempio n. 6
0
    def test_TwoDotsInWebsite(self):
        """

        Test email address does not have dot

        """
        test_email_address = "johns@[email protected]"
        self.assertFalse(fun(test_email_address))
Esempio n. 7
0
    def test_MultipleAT(self):
        """

        Test email address has more than one @

        """
        test_email_address = "johns@[email protected]"
        self.assertFalse(fun(test_email_address))
Esempio n. 8
0
    def test_fun(self):
        """

        Test email address has @

        """
        test_email_address = "*****@*****.**"
        self.assertTrue(fun(test_email_address))