def test_empty_requirements_disallowed(self): with self.assertRaises(Exception): gethash.main(["gethash", "/does_not_exist"])
def test_empty_requirements_disallowed(self): with self.assertRaises(Exception): gethash.main(['gethash', '/does_not_exist'])
def test_main(self): with open("reqs.txt", "w") as f: f.write("test==1.0\n") gethash.main(["gethash", "reqs.txt"], MockSession)
def test_main(self): with open('reqs.txt', 'w') as f: f.write('test==1.0\n') gethash.main(['gethash', 'reqs.txt'], MockSession)