Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)