def test_build_can_be_merged_with_non_mergable_same_codebases(self): r1 = buildrequest.BuildRequest() r1.sources = {"A": FakeSource(mergeable=False)} r2 = buildrequest.BuildRequest() r2.sources = {"A": FakeSource(mergeable=False)} mergeable = r1.canBeMergedWith(r2) self.assertFalse(mergeable, "Both request should not be able to merge")
def test_build_can_be_merged_with_non_mergables_different_codebases(self): r1 = buildrequest.BuildRequest() r1.sources = {"A": FakeSource(mergeable=False)} r2 = buildrequest.BuildRequest() r2.sources = {"B": FakeSource(mergeable=False)} mergeable = r1.canBeMergedWith(r2) self.assertFalse( mergeable, "Request containing different codebases " + "should always be able to merge")