Is there anyway with unittest to just assert that a function call does not result in an error, whether it is a TypeError, IOError, etc.
example:
assert function(a,b) is not error
or
if not assertRaises function(a, b)
What is the best way to do this (without using classes)? The trouble I'm having is all the useful documentation I come a cross in unittest is all class based and I don't want to use class based.
Full example:
def test_validate_params():assert test.validate_params('hackenv-re', 'test.username') is not errorsassert test.validate_params('fakeenv', 'test.username') is errorassert test.validate_params('hackevn-re', 'vagrant') is errorcounter += 1print "Test Passed {0}/5: validate_params".format(counter)