def test_want_mutation_nonexistent_file(self): with Stub() as selector: selector.wantFile(any()) >> False runner = MutationRunner(mutations_path='/mutations/path', test_selector=selector) self.assertFalse(runner.want_mutation('/mutations/path/submodule/module.py'))
def test_want_mutation_file_in_mutations_path(self): runner = MutationRunner(mutations_path='/mutations/path', test_selector=None) #self.assertTrue(runner.wantMutation('/mutations/path/submodule/module.py')) self.assertFalse(runner.want_mutation('/mutations/submodule/module.py'))