Ejemplo n.º 1
0
 def test_get_doc_of_index(self):
     unity_doc = UnityDoc(t_rest(), HealthEnum)
     doc = unity_doc._get_doc(value=5)
     assert_that(doc, equal_to('OK'))
Ejemplo n.º 2
0
 def test_get_doc_of_resource(self):
     unity_doc = UnityDoc(t_rest(), UnityLun)
     doc = unity_doc._get_doc()
     assert_that(doc, contains_string('Represents Volume'))
Ejemplo n.º 3
0
 def test_get_doc_of_field(self):
     unity_doc = UnityDoc(t_rest(), UnityLun)
     doc = unity_doc._get_doc(field='name')
     assert_that(doc, equal_to('Readable name'))
Ejemplo n.º 4
0
 def test_get_doc_of_index(self):
     unity_doc = UnityDoc(t_rest(), HealthEnum)
     doc = unity_doc._get_doc(value=5)
     assert_that(doc, equal_to('OK'))
Ejemplo n.º 5
0
 def test_get_doc_of_resource(self):
     unity_doc = UnityDoc(t_rest(), UnityLun)
     doc = unity_doc._get_doc()
     assert_that(doc, contains_string('Represents Volume'))
Ejemplo n.º 6
0
 def test_get_doc_of_field(self):
     unity_doc = UnityDoc(t_rest(), UnityLun)
     doc = unity_doc._get_doc(field='name')
     assert_that(doc, equal_to('Readable name'))