def test_fake_lvcreate_with_tags(self):
        lvsubsystem = lvmlib.LVSubsystem(mock.Mock(), mock.Mock())
        lvsubsystem.add_volume_group('vg')

        exec_result = lvsubsystem.fake_lvcreate(
            "someprog -n name --addtag tagg -L 100 vg".split(), '')

        lv, = lvsubsystem.get_logical_volumes_with_name('name')
        self.assertEquals('tagg', lv.tag)