Esempio 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'))
Esempio 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'))
Esempio 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'))
Esempio 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'))
Esempio 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'))
Esempio 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'))