def test_known_result(self): """ disemvowel will fail return if its return value doesn't match a known output with a given input string. """ result = main.disemvowel("foobar") self.assertEqual(result, "fbr")
def test_return_type_is_str(self): """ disemvowel will fail if the return type is not a string. """ result = main.disemvowel("foobar") self.assertIsInstance(result, str)