def test_patch_not_promoted_and_not_merged(self): dummy_change = { 'submitted': '2900-06-05 20:23:09.000000000', 'status': 'BLAH' } self.assertFalse( c_builder.is_patch_promoted(dummy_change, 'master', con.DOCKERHUB_OOO))
def test_is_patch_promoted(self): dummy_change = { 'submitted': '2017-06-05 20:23:09.000000000', 'status': 'MERGED' } self.assertTrue( c_builder.is_patch_promoted(dummy_change, 'master', con.DOCKERHUB_OOO))
def test_patch_not_promoted_docker(self): dummy_change = { 'submitted': '2900-06-05 20:23:09.000000000', 'status': 'MERGED' } dummy_image = 'centos-binary-opendaylight' self.assertFalse( c_builder.is_patch_promoted(dummy_change, 'master', con.DOCKERHUB_OOO, docker_image=dummy_image))