def test_tag_life_cicle(self): """Test get next available tags returns different tags""" link = Link(self.iface1, self.iface2) tag = link.get_next_available_tag() is_available = link.is_tag_available(tag) self.assertFalse(is_available) link.make_tag_available(tag) is_available = link.is_tag_available(tag) self.assertTrue(is_available)
def test_next_tag_with_use_tags(self): """Test get next availabe tags returns different tags""" link = Link(self.iface1, self.iface2) tag = link.get_next_available_tag() is_available = link.is_tag_available(tag) self.assertFalse(is_available) link.use_tag(tag)