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_not_is_test_module(filename):
"""Check ``is_test_module`` working for invalid filenames."""
assert not collector.is_test_module(filename)
def test_is_test_module(filename):
"""Check ``is_test_module`` working for valid filenames."""
assert collector.is_test_module(filename)