Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #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'))