

def test_make_tag(self):
    parent_ns = Namespace('test')
    tag_name = str(uuid.uuid4())
    expected_path = ('test/%s' % tag_name)
    result = make_tag(parent_ns, tag_name, 'flimp-test', 'For the purposes of testing flimp')
    self.assertEqual(expected_path, result.path)
    result = make_tag(parent_ns, tag_name, 'flimp-test', 'For the purposes of testing flimp')
    self.assertEqual(expected_path, result.path)
    result.delete()

dataset/ETHPy150Open fluidinfo/flimp/tests/test_utils.py TestUtils.test_make_tag/original