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_setup_py(self, setup_py_file, *expected):
filepath = os.path.join(os.path.dirname(__file__), 'dependency_tests/test4', setup_py_file)
dependencies = dependency_detection.from_setup_py(filepath)
expected = self._expected(*expected)
self.assertEqual(expected, dependencies)