@@ -0,0 +1,792 @@
+%0Aimport unittest%0Afrom GeneratePrimeNumbers import GeneratePrimeNumbers%0A%0A%0Aclass TestPrimeGenerator(unittest.TestCase):%0A%0A    def TestCorrectness(self):%0A        self.assertEqual(GeneratePrimeNumbers(20), %5B2, 3, 5, 7, 11, 13, 17, 19%5D)%0A%0A%0A    def TestZero(self):%0A        self.assertEqual(GeneratePrimeNumbers(0), %22Zero or One cannot be prime numbers.%22)%0A%0A    def TestOne(self):%0A        self.assertEqual(GeneratePrimeNumbers(1), %22Zero or One cannot be prime numbers.%22)%0A%0A    def TestString(self):%0A        self.assertEqual(GeneratePrimeNumbers(%22String%22), %22Only integers are allowed.%22)%0A%0A    def TestNegativeNumbers(self):%0A        self.assertEqual(GeneratePrimeNumbers(-1), %22Not possible to generate prime numbers for integers less than 2.%22)%0A%0A%0Aif __name__ == %22__main__%22:%0A       unittest.main()%0A%0A%0A       %0A

Create TestPrimeNumbers.py