def test_get_attr_str(self): """Verify `/document/PREFIX/items/UID/attrs/NAME:str` works (HTML).""" text = server.get_attr('prefix', 'uid', 'text') self.assertEqual("TEXT", text)
def test_get_attr_list(self): """Verify `/document/PREFIX/items/UID/attrs/NAME:list` works (JSON).""" data = server.get_attr('prefix', 'uid', 'links') self.assertEqual({'value': ['UID3', 'UID4']}, data)
def test_get_attr(self): """Verify `/document/PREFIX/items/UID/attrs/NAME` works (HTML).""" text = server.get_attr('prefix', 'uid', 'name') self.assertEqual("None", text)
def test_get_attr(self): """Verify `/document/PREFIX/items/UID/attrs/NAME` works (JSON).""" data = server.get_attr('prefix', 'uid', 'name') self.assertEqual({'value': None}, data)
def test_get_attr_str(self): """Verify `/document/PREFIX/items/UID/attrs/NAME:str` works (JSON).""" data = server.get_attr('prefix', 'uid', 'text') self.assertEqual({'value': 'TEXT'}, data)
def test_get_attr_list(self): """Verify `/document/PREFIX/items/UID/attrs/NAME:list` works (HTML).""" text = server.get_attr('prefix', 'uid', 'links') self.assertEqual("UID3<br>UID4", text)