def test_negative_numbers(self): self.assertEqual(prime_gen(-3), 'Negatives not allowed')
def test_result(self): self.assertEqual(prime_gen(3), 12, 'Number is not prime')
def test_decimal_inputs(self): self.assertEqual(prime_gen(1.1), 'Decimal inputs are not allowed')
def test_float_inputs(self): self.assertEqual(prime_gen(0.112), 'Floating point inputs not allowed')
def test_string_inputs(self): self.assertEqual(prime_gen(str), 'String inputs not valid')