def test_simple_dist_repo_init(self): # simple case kojihub.dist_repo_init('tag', ['key'], {'arch': ['x86_64']}) self.InsertProcessor.assert_called_once() ip = self.inserts[0] self.assertEquals(ip.table, 'repo') data = {'dist': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, 'state': koji.REPO_STATES['INIT']} self.assertEquals(ip.data, data) self.assertEquals(ip.rawdata, {}) # no comps option self.copyfile.assert_not_called()
def test_simple_dist_repo_init(self): # simple case kojihub.dist_repo_init('tag', ['key'], {'arch': ['x86_64']}) self.InsertProcessor.assert_called_once() ip = self.inserts[0] self.assertEquals(ip.table, 'repo') data = { 'dist': True, 'create_event': 12345, 'tag_id': 42, 'id': 99, 'state': koji.REPO_STATES['INIT'] } self.assertEquals(ip.data, data) self.assertEquals(ip.rawdata, {}) # no comps option self.copyfile.assert_not_called()