Exemplo n.º 1
0
    def test_none_input(self):
        """ Tests is_type_string with None as an input. """

        info = None

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 2
0
    def test_int_input(self):
        """" Tests is_type_string with a integer as an input. """

        info = 25

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 3
0
    def test_float_input(self):
        """ Tests is_type_string with a float as an input. """

        info = 1.663e4343

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 4
0
    def test_set_input(self):
        """ Tests is_type_string with a set as an input. """

        info = set()

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 5
0
    def test_dict_input(self):
        """ Tests is_type_string with a dictionary as an input. """

        info = dict()

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 6
0
    def test_none_input(self):
        """ Tests is_type_string with None as an input. """

        info = None

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 7
0
    def test_float_input(self):
        """ Tests is_type_string with a float as an input. """

        info = 1.663e4343

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 8
0
    def test_int_input(self):
        """" Tests is_type_string with a integer as an input. """

        info = 25

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 9
0
    def test_dict_input(self):
        """ Tests is_type_string with a dictionary as an input. """

        info = dict()

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 10
0
    def test_set_input(self):
        """ Tests is_type_string with a set as an input. """

        info = set()

        with self.assertRaises(phishingpage.ArgumentIsNotAString):
            phishingpage.is_type_string(info)
Exemplo n.º 11
0
    def test_string_input(self):
        """ Tests is_type_string with a valid string as an input. """

        info = "test"

        self.assertEqual(phishingpage.is_type_string(info), True,
                         "Failed to return True with valid string!")
Exemplo n.º 12
0
    def test_string_input(self):
        """ Tests is_type_string with a valid string as an input. """

        info = "test"

        self.assertEqual(phishingpage.is_type_string(info), True,
                         "Failed to return True with valid string!")