import unittest


ANONYMOUS_SERVERS = [
    '80.237.136.138',   # ftp.hosteurope.de
    '129.215.17.244',   # ftp.ed.ac.uk
    '134.109.228.1'     # ftp.tu-chemnitz.de
]

NON_ANONYMOUS_SERVERS = [
    '93.184.216.34',
    '157.240.20.35'
]

MIXED_SERVERS = [
    '80.237.136.138',   # ftp.hosteurope.de
    '93.184.216.34'
]


class TestScan(unittest.TestCase):

    def test_anonymous_servers(self):
        self.assertEqual(True, True)

    def test_non_anonymous_servers(self):
        self.assertEqual(True, True)

    def test_mixed_servers(self):
        self.assertEqual(True, True)

@@ -9,16 +9,34 @@
 nittest%0A
+import subprocess%0A
 %0A%0AANONYM
@@ -31,32 +31,36 @@
 ess%0A%0A%0AANONYMOUS_
+FTP_
 SERVERS = %5B%0A    
@@ -192,19 +192,12 @@
 %0A%0ANO
-N_ANONYMOUS
+_FTP
 _SER
@@ -253,93 +253,8 @@
 %0A%5D%0A%0A
-MIXED_SERVERS = %5B%0A    '80.237.136.138',   # ftp.hosteurope.de%0A    '93.184.216.34'%0A%5D%0A%0A
 %0Acla
@@ -301,32 +301,36 @@
  test_anonymous_
+ftp_
 servers(self):%0A 
@@ -340,80 +340,170 @@
     
-self.assertEqual(True, True)%0A%0A
+output = subprocess.check_output(%5B%22ftpknocker%22%5D + ANONYMOUS_FTP_SERVERS)%0A 
     
-def test_non_anonymous_servers(self):%0A
+   output = output.decode('utf-8')%0A        for server in ANONYMOUS_FTP_SERVERS:%0A    
     
@@ -517,32 +517,33 @@
 f.assert
-Equal(True, True
+In(server, output
 )%0A%0A    d
@@ -554,13 +554,14 @@
 est_
-mixed
+no_ftp
 _ser
@@ -564,32 +564,146 @@
 _servers(self):%0A
+        output = subprocess.check_output(%5B%22ftpknocker%22%5D + NO_FTP_SERVERS)%0A        output = output.decode('utf-8')%0A
         self.ass
@@ -715,16 +715,16 @@
 ual(
-True, True
+%22%22, output
 )%0A

add scan tests