Beispiel #1
0
 def test_person_to_pickerentry(self):
     # IPerson can be adpated to IPickerEntry.
     person = self.factory.makePerson()
     adapter = IPickerEntrySource(person)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
Beispiel #2
0
 def test_projectgroup_to_picker_entry(self):
     projectgroup = self.factory.makeProject()
     adapter = IPickerEntrySource(projectgroup)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
Beispiel #3
0
 def test_distribution_to_picker_entry(self):
     distribution = self.factory.makeDistribution()
     adapter = IPickerEntrySource(distribution)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
Beispiel #4
0
 def test_dsp_to_picker_entry(self):
     dsp = self.factory.makeDistributionSourcePackage()
     adapter = IPickerEntrySource(dsp)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
 def test_person_to_pickerentry(self):
     # IPerson can be adpated to IPickerEntry.
     person = self.factory.makePerson()
     adapter = IPickerEntrySource(person)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
 def test_distribution_to_picker_entry(self):
     distribution = self.factory.makeDistribution()
     adapter = IPickerEntrySource(distribution)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
 def test_projectgroup_to_picker_entry(self):
     projectgroup = self.factory.makeProject()
     adapter = IPickerEntrySource(projectgroup)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))
 def test_dsp_to_picker_entry(self):
     dsp = self.factory.makeDistributionSourcePackage()
     adapter = IPickerEntrySource(dsp)
     self.assertTrue(IPickerEntrySource.providedBy(adapter))