Esempio n. 1
0
    def test_gen_cyrillic_8(self):
        """
        @Test: Create Cyrillic string with alpha string length
        @Feature: String Generator
        @Assert: Cyrillic string is not created due to value error
        """

        with self.assertRaises(ValueError):
            gen_cyrillic(length='a')
Esempio n. 2
0
    def test_gen_cyrillic_8(self):
        """
        @Test: Create Cyrillic string with alpha string length
        @Feature: String Generator
        @Assert: Cyrillic string is not created due to value error
        """

        with self.assertRaises(ValueError):
            gen_cyrillic(length='a')
Esempio n. 3
0
    def test_gen_cyrillic_1(self):
        """
        @Test: Create Cyrillic string of varied length
        @Feature: String Generator
        @Assert: Cyrillic string is generated
        """

        result = gen_cyrillic()
        self.assertTrue(len(result) > 0, "Empty string was generated")
Esempio n. 4
0
    def test_gen_cyrillic_1(self):
        """
        @Test: Create Cyrillic string of varied length
        @Feature: String Generator
        @Assert: Cyrillic string is generated
        """

        result = gen_cyrillic()
        self.assertTrue(
            len(result) > 0, "Empty string was generated")
Esempio n. 5
0
    def test_gen_cyrillic_2(self):
        """
        @Test: Create Cyrillic string of fixed length
        @Feature: String Generator
        @Assert: Cyrillic string with fixed length is generated
        """

        for length in range(2, 12, 2):
            result = gen_cyrillic(length)
            self.assertEqual(
                len(result), length,
                "Generate string does not have the expected length")
Esempio n. 6
0
    def test_gen_cyrillic_2(self):
        """
        @Test: Create Cyrillic string of fixed length
        @Feature: String Generator
        @Assert: Cyrillic string with fixed length is generated
        """

        for length in range(2, 12, 2):
            result = gen_cyrillic(length)
            self.assertEqual(
                len(result),
                length,
                "Generate string does not have the expected length")