def test_function_edge_case(self): """ This function checks whether fizzbuzz() will return the correct value for a specific value. """ result = fizzbuzz_correct.fizzbuzz(15) self.assertEquals("FizzBuzz!", result, "This doesn't seem to work with %d" % (integer))
def test_function_output(self): """ Thisfunction should return correct output. This test spot-checks fizzbuzz() for the the values given in knownIfPrime. """ for integer, stringValue in self.knownIfPrime: # Check each tuple in knownIfPrime result = fizzbuzz_correct.fizzbuzz(integer) self.assertEquals(stringValue, result, "This doesn't seem to work with %d" % (integer))