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')
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")
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")
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")