'Deactivate the installed proteomics_datatypes_1450 repository.'

def test_0020_deactivate_datatypes_repository(self):

    '\n                                This    is    step    4    -    Deactivate    proteomics_datatypes_1450,    verify    the    count    of    datatypes    and    sniffers    is    equal    to\n                                                                                                    the    count    determined    in    step    1.\n                                Deactivate    proteomics_datatypes_1450    and    check    that    the    in-memory    datatypes    and    sniffers    match    the    base    values\n                                determined    in    the    first    step.\n                                '
    repository = self.test_db_util.get_installed_repository_by_name_owner(repository_name, common.test_user_1_name)
    global base_datatypes_count
    global base_sniffers_count
    self.deactivate_repository(repository)
    new_datatypes_count = self.get_datatypes_count()
    assert (new_datatypes_count == base_datatypes_count), ('Expected    %d    datatypes,    got    %d' % (base_datatypes_count, new_datatypes_count))
    current_sniffers = self.get_sniffers_count()
    assert (current_sniffers == base_sniffers_count), ('Sniffer    count    after    deactivating    proteomics_datatypes_1450    is    %d,    expected    %d' % (current_sniffers, base_sniffers_count))
