Ejemplo n.º 1
0
 def test_empty_requirements_disallowed(self):
     with self.assertRaises(Exception):
         gethash.main(["gethash", "/does_not_exist"])
Ejemplo n.º 2
0
 def test_empty_requirements_disallowed(self):
     with self.assertRaises(Exception):
         gethash.main(['gethash', '/does_not_exist'])
Ejemplo 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)
Ejemplo 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)