def testFunctionNotCallable(self):
    """Tests value error when argument fn is not a callable."""
    self.assertRaises(
        TypeError, periodic_ops.periodically, body=1, period=2)
Tests value error when argument fn is not a callable.
trfl/periodic_ops_test.py