Beispiel #1
0
 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=[]))
Beispiel #2
0
 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=[]))
Beispiel #3
0
 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=[]))