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