Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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)
Example #7
0
 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)
Example #8
0
 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)
Example #9
0
 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)
Example #10
0
 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)
Example #11
0
 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)
Example #12
0
 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)