Пример #1
0
 def test_different_length(self):
     str1 = "asdfghkljljlhlkj"
     str2 = "asdlfkhooihdfg"
     self.assertFalse(no_name(str1, str2))
Пример #2
0
 def test_true_condition(self):
     str1 = "abcdefg"
     str2 = "gfecdba"
     self.assertTrue(no_name(str1, str2))
Пример #3
0
 def test_extreme_condition1(self):
     str1 = ""
     str2 = ""
     self.assertTrue(no_name(str1, str2))
Пример #4
0
 def test_extreme_condition2(self):
     str1 = "122232131354345sdahjsdflfhgopiqyhpw3ty03yth4idhfheoyfgy3 \
     q04ty0hergihedofghosdhfposhopfygoyt9834yt98y3"
     str2 = ""
     self.assertFalse(no_name(str1, str2))
Пример #5
0
 def test_same_length_different_character(self):
     str1 = "abcdefg"
     str2 = "hijklmn"
     self.assertFalse(no_name(str1, str2))