def test_pattern_not_found_in_match_no_force(self): p = rpx.Repex(MOCK_TEST_FILE, 'version', 'X', '') self.assertTrue(p.validate_before(False, False, must_include=[]))
def test_match_not_found_in_file_force_match_and_pattern(self): p = rpx.Repex(MOCK_TEST_FILE, 'NONEXISTING STRING', 'X', '') self.assertFalse(p.validate_before(True, True, must_include=[]))
def test_match_not_found_in_file_no_force(self): p = rpx.Repex(MOCK_TEST_FILE, 'NONEXISTING STRING', 'X', '') self.assertTrue(p.validate_before(False, False, must_include=[]))