コード例 #1
0
 def test_remove_tag_doesnt_error_on_missing_tag(self):
     block_device = BlockDevice()
     tag = factory.make_name('tag')
     #: Test is this doesn't raise an exception
     block_device.remove_tag(tag)
コード例 #2
0
 def test_remove_tag_deletes_tag(self):
     block_device = BlockDevice()
     tag = factory.make_name('tag')
     block_device.add_tag(tag)
     block_device.remove_tag(tag)
     self.assertItemsEqual([], block_device.tags)