示例#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')
示例#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')
示例#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")
示例#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")
示例#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")
示例#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")