예제 #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'))
예제 #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'))
예제 #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'))
예제 #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'))
예제 #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'))
예제 #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'))