def test_integer_with_special_characters(self): self.assertEqual(False, validators.integer('!"#¤%&/()=?*"^'))
def test_integer_with_string(self): self.assertEqual(False, validators.integer('astring'))
def test_integer_with_number(self): self.assertEqual('12345', validators.integer('12345'))
def test_integer_with_float(self): self.assertEqual(False, validators.integer('123.5'))
def validate_mongodb_port(mongodb_port): return validators.integer(mongodb_port)