コード例 #1
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_noExtension(self):
        """

        Test email address does not have extension

        """
        test_email_address = "johnsmith@gmail."
        self.assertFalse(fun(test_email_address))
コード例 #2
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_NoUsername(self):
        """

        Test email address does not have @

        """
        test_email_address = "@hgmail.com"
        self.assertFalse(fun(test_email_address))
コード例 #3
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_noWebsite(self):
        """

        Test email address does not have website part

        """
        test_email_address = "[email protected]"
        self.assertFalse(fun(test_email_address))
コード例 #4
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_NoAtNoDot(self):
        """

        Test email address does not have @

        """
        test_email_address = "johnsmithgmailcom"
        self.assertFalse(fun(test_email_address))
コード例 #5
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_MissingAt(self):
        """

        Test email address does not have @

        """
        test_email_address = "johnsmithgmail.com"
        self.assertFalse(fun(test_email_address))
コード例 #6
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_TwoDotsInWebsite(self):
        """

        Test email address does not have dot

        """
        test_email_address = "johns@[email protected]"
        self.assertFalse(fun(test_email_address))
コード例 #7
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_MultipleAT(self):
        """

        Test email address has more than one @

        """
        test_email_address = "johns@[email protected]"
        self.assertFalse(fun(test_email_address))
コード例 #8
0
ファイル: test_email_check.py プロジェクト: manhar/misc
    def test_fun(self):
        """

        Test email address has @

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