Exemple #1
0
 def test_sample_1(self):
     self.assertTrue(isSSLIP("zazbz[bzb]cdb"))
Exemple #2
0
 def test_sample_1(self):
     self.assertTrue(isSSLIP("aaa[kek]eke"))
Exemple #3
0
 def test_sample_1(self):
     self.assertTrue(isSSLIP("aba[bab]xyz"))
Exemple #4
0
 def test_sample_1(self):
     self.assertFalse(isSSLIP("xyx[xyx]xyx"))
Exemple #5
0
from solution import isSSLIP

count = 0

with open('../input', 'rb') as handle:
    for line in handle:
        if isSSLIP(line):
            count += 1

print 'Number of SSL IPs:', count