

@mock.patch('debile.master.arches.arch_matches', return_value=True)
def test_get_preferred_affinity(self, mock):
    affinity = ['amd64']
    valid = ['i386']
    arch = get_preferred_affinity(affinity, valid, self.arches)
    self.assertEquals(arch.name, 'amd64')

dataset/ETHPy150Open opencollab/debile/tests/test_arches.py ArchesTestCase.test_get_preferred_affinity/original