Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_has_numpy_support_fails():
with patch(_IMPORT_FUNCTION_NAME, side_effect=ImportError):
assert _has_numpy_support() == False
def test_has_numpy_support_succeeds():
assert _has_numpy_support() == True