Exemplo n.º 1
0
 def test_can_tell_a_python_script_doesnt_have_a_main(self):
     self.assertFalse(search.has_main('runnablesearch/tests/examples/file_without_main.py'))
Exemplo n.º 2
0
 def test_can_tell_a_regular_file_doesnt_have_a_main(self):
     self.assertFalse(search.has_main('runnablesearch/tests/examples/not_a_python_file'))
Exemplo n.º 3
0
 def test_can_tell_a_python_script_has_a_main(self):
     self.assertTrue(search.has_main('runnablesearch/tests/examples/file_with_main.py'))